Skip to content

Commit a2b9bfa

Browse files
committed
Adapt release action to use NPM trusted publishers
1 parent 4d0e2a0 commit a2b9bfa

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: release
2-
permissions:
3-
contents: write
4-
packages: write
5-
actions: write
62
on:
73
release:
84
types: [created]
95
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
id-token: write
10+
1011
jobs:
1112
deploy-npm-module:
1213
runs-on: ubuntu-latest
@@ -35,8 +36,6 @@ jobs:
3536
echo "version=$VERSION" >> $GITHUB_OUTPUT
3637
echo "PROJECT=$PROJECT" >> $GITHUB_ENV
3738
- run: npm publish
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
4039
upload-asset:
4140
runs-on: ubuntu-latest
4241
needs: deploy-npm-module

0 commit comments

Comments
 (0)