Skip to content

Commit 1a54e2d

Browse files
committed
fix(ci/cd): Fix NPM release push to registry
1 parent ae58a21 commit 1a54e2d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,33 @@ on:
77
branches:
88
- master
99

10+
permissions:
11+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
12+
1013
jobs:
1114
release:
1215
name: Release
1316
runs-on: ubuntu-latest
1417
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-node@v6
1720
with:
18-
node-version: 14
21+
node-version: 24
1922
- name: Install
2023
run: npm ci
2124
- name: Build
2225
run: npm run build
2326
- name: Test
2427
run: npm run test:nowatch
2528
- name: Semantic Release
26-
uses: cycjimmy/semantic-release-action@v3
29+
uses: cycjimmy/semantic-release-action@v6
2730
with:
2831
semantic_version: 19.0.5
2932
extra_plugins: |
3033
@semantic-release/changelog@6.0.0
3134
@semantic-release/git
3235
env:
3336
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3537

3638
storybook-deploy:
3739
name: Storybook deploy

0 commit comments

Comments
 (0)