Skip to content

Commit 81b4353

Browse files
committed
move to OIDC for npm
1 parent ae130be commit 81b4353

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ jobs:
215215
name: Publish to npm
216216
needs: [release]
217217
runs-on: ubuntu-latest
218+
permissions:
219+
contents: read
220+
id-token: write
218221
steps:
219222
- uses: actions/setup-node@v5
220223
with:
@@ -232,12 +235,10 @@ jobs:
232235
cd node
233236
VERSION=$(node -p "require('./package.json').version")
234237
if echo "$VERSION" | grep -qE '(alpha|beta|rc|dev)'; then
235-
npm publish --access public --tag beta
238+
npm publish --access public --tag beta --provenance
236239
else
237-
npm publish --access public
240+
npm publish --access public --provenance
238241
fi
239-
env:
240-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
241242
242243
publish-pypi:
243244
name: Publish to PyPI

0 commit comments

Comments
 (0)