Skip to content

Commit 8ccc31b

Browse files
committed
Update npm publish workflow for trusted publishing
1 parent c775b8e commit 8ccc31b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
id-token: write # Required for npm trusted publishing (OIDC)
9+
contents: read
10+
711
jobs:
812
deploy:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v6
1216
- uses: actions/setup-node@v6
1317
with:
18+
node-version: '24'
1419
registry-url: https://registry.npmjs.org/
1520
- name: Set up Python
1621
uses: actions/setup-python@v6
@@ -26,5 +31,3 @@ jobs:
2631
python -m pip install --upgrade pip
2732
pip install pre-commit
2833
- run: make release-npm
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.NPM_API_TOKEN}}

0 commit comments

Comments
 (0)