Skip to content

Commit af6fe9f

Browse files
chore(ci): update semantic release workflow to use OIDC (#660)
1 parent 1118dca commit af6fe9f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ on:
44
branches:
55
- master
66
- alpha
7+
permissions:
8+
contents: read # for checkout
79
jobs:
810
release:
911
name: Release
1012
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # to be able to publish a GitHub release
15+
issues: write # to be able to comment on released issues
16+
pull-requests: write # to be able to comment on released pull requests
17+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
1118
steps:
1219
- name: Checkout
1320
uses: actions/checkout@v5
@@ -39,9 +46,6 @@ jobs:
3946
- name: Build
4047
run: npm run build
4148
- name: Release
42-
uses: cycjimmy/semantic-release-action@v3
43-
with:
44-
semantic_version: 16
4549
env:
4650
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
47-
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
51+
run: npx semantic-release@25

0 commit comments

Comments
 (0)