Skip to content

Commit 6310f8e

Browse files
committed
Merge branch 'develop' into d-damian
2 parents 0a00309 + d9a1c09 commit 6310f8e

File tree

5 files changed

+1354
-69
lines changed

5 files changed

+1354
-69
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.github/workflows/publish.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@ permissions:
77
contents: write
88

99
jobs:
10-
publish-npm:
10+
release:
11+
name: Release
1112
runs-on: ubuntu-latest
13+
1214
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
1519
with:
16-
node-version: 16
17-
registry-url: https://registry.npmjs.org/
18-
19-
- name: Create release
20+
node-version: lts/*
21+
- name: Install dependencies
22+
run: npx ci
23+
- name: Install semantic-release extra plugins
24+
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
25+
- name: Lint
26+
run: npm run lint:fix
27+
- name: Test
28+
run: npm run test --if-present
29+
- name: Build
30+
run: npm run build
31+
- name: Release
2032
env:
2133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
run: |
23-
RELEASE_TAG=v$(node -p "require('./package.json').version")
24-
gh release create $RELEASE_TAG --target=$GITHUB_SHA --title="$RELEASE_TAG"
25-
26-
- run: npm ci
27-
- run: npm test
28-
29-
- name: Publish to npmjs
30-
env:
31-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
32-
run: npm publish --access=public
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: npm config set access public && npx semantic-release

0 commit comments

Comments
 (0)