Skip to content

Commit 3bdf050

Browse files
committed
feat: add semantic
1 parent 676f43f commit 3bdf050

File tree

6 files changed

+8581
-1223
lines changed

6 files changed

+8581
-1223
lines changed

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Push checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- beta
8+
- vue3
9+
10+
jobs:
11+
release:
12+
name: Release process
13+
runs-on: ubuntu-24.04
14+
permissions:
15+
contents: write
16+
issues: write
17+
pull-requests: write
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "lts/*"
26+
registry-url: "https://registry.npmjs.org"
27+
scope: '@kuzzleio'
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Build plugin
33+
run: npm build
34+
35+
- name: Release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GHP }}
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
SEMANTIC_RELEASE_NPM_PUBLISH: "true"
40+
SEMANTIC_RELEASE_SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
41+
run: npx semantic-release

.github/workflows/push_dev.workflow.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,41 @@ name: Push to dev branch
33
on:
44
push:
55
branches:
6-
- "[0-9]+-dev"
6+
- '[0-9]+-dev'
77

88
jobs:
99
lint:
1010
name: Lint
1111
runs-on: ubuntu-22.04
12+
strategy:
13+
matrix:
14+
node-version: [18, 20, 22]
1215
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1518
with:
16-
node-version: 16
19+
node-version: ${{ matrix.node-version }}
20+
1721
- name: Install dependencies
1822
run: npm ci
23+
1924
- name: Run lint
2025
run: npm run test:lint
2126

2227
check-types:
2328
name: Check types
2429
runs-on: ubuntu-22.04
30+
strategy:
31+
matrix:
32+
node-version: [18, 20, 22]
2533
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions/setup-node@v3
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-node@v4
2836
with:
29-
node-version: 16
37+
node-version: ${{ matrix.node-version }}
38+
3039
- name: Install dependencies
3140
run: npm ci
41+
3242
- name: Run types tests
3343
run: npm run test:types

.releaserc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": [
3+
"semantic-release-config-kuzzle"
4+
],
5+
"branches": [
6+
{
7+
"name": "master"
8+
},
9+
{
10+
"name": "beta",
11+
"prerelease": true
12+
},
13+
{
14+
"name": "vue3",
15+
"prerelease": true
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)