Skip to content

Commit d744a5f

Browse files
committed
ci: use npm trusted publishing
1 parent 9be3509 commit d744a5f

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,27 @@ jobs:
2626
runs-on: ubuntu-latest
2727
needs: test
2828
if: github.ref == 'refs/heads/master'
29+
permissions:
30+
contents: write
31+
issues: write
32+
pull-requests: write
33+
id-token: write
2934
steps:
30-
- uses: actions/checkout@v1
35+
- uses: actions/checkout@v5
36+
- name: set node.js 24
37+
uses: actions/setup-node@v6
38+
with:
39+
node-version: 24
3140
- name: npm install
3241
run: npm install
3342
- name: npm run build
3443
run: npm run build
3544
- name: Release
36-
uses: cycjimmy/semantic-release-action@v2
45+
uses: cycjimmy/semantic-release-action@v6
3746
with:
38-
semantic_version: 19
3947
extra_plugins: |
4048
@semantic-release/changelog
4149
@semantic-release/git
42-
branch: master
50+
branches: master
4351
env:
4452
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)