Skip to content

Commit c72c4e6

Browse files
committed
fix(ci/cd): Correct workflow /4
1 parent afc8263 commit c72c4e6

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,37 @@ on:
88
- master
99

1010
permissions:
11-
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
11+
contents: read # for checkout
1212

1313
jobs:
1414
release:
1515
name: Release
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write # to be able to publish a GitHub release
19+
issues: write # to be able to comment on released issues
20+
pull-requests: write # to be able to comment on released pull requests
21+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
1722
steps:
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-node@v6
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
2025
with:
2126
node-version: 24
22-
- name: Install
27+
- name: Install dependencies
2328
run: npm ci
2429
- name: Build
2530
run: npm run build
2631
- name: Test
2732
run: npm run test:nowatch
2833
- name: Semantic Release
29-
uses: cycjimmy/semantic-release-action@v6
30-
with:
31-
# semantic_version: 19.0.5
32-
extra_plugins: |
33-
@semantic-release/changelog@6.0.0
34-
@semantic-release/git
34+
run: npx semantic-release
35+
# with:
36+
# # semantic_version: 19.0.5
37+
# extra_plugins: |
38+
# @semantic-release/changelog@6.0.0
39+
# @semantic-release/github
3540
env:
36-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3742

3843
storybook-deploy:
3944
name: Storybook deploy

0 commit comments

Comments
 (0)