Skip to content

Commit f2cd3db

Browse files
authored
Adapt onRelease to npmjs trusted publisers approach
1 parent c0d6bca commit f2cd3db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/onRelease.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types: [published, released]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
id-token: write
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -16,7 +20,5 @@ jobs:
1620
- run: npm install
1721
- run: npm run build
1822
- run: npm run prepack
19-
- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c
20-
with:
21-
token: ${{ secrets.NPM_TOKEN }}
23+
- run: npm publish --access public
2224
- run: npm run postpack

0 commit comments

Comments
 (0)