Skip to content

Commit 9c7164a

Browse files
chore: update semantic-release workflow for improved permissions and versioning
1 parent 1b154d6 commit 9c7164a

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/semantic-release.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,33 @@ jobs:
2020
# run: npm run test:
2121

2222
publish:
23-
2423
runs-on: ubuntu-latest
24+
permissions:
25+
contents: write
26+
issues: write
27+
pull-requests: write
28+
id-token: write
2529
steps:
26-
- uses: actions/checkout@v2
27-
- uses: cycjimmy/semantic-release-action@v2
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
registry-url: 'https://registry.npmjs.org'
35+
- uses: cycjimmy/semantic-release-action@v4
2836
with:
29-
semantic_version: 19
37+
semantic_version: 24
3038
branches: |
3139
[
3240
'next',
3341
'v2'
3442
]
43+
extra_plugins: |
44+
@semantic-release/changelog
45+
@semantic-release/git
3546
id: semantic
3647
env:
3748
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
NPM_CONFIG_PROVENANCE: true
3950
- if: steps.semantic.outputs.new_release_published == 'true'
4051
run: |
4152
echo ${{ steps.semantic.outputs.new_release_version }}

0 commit comments

Comments
 (0)