Skip to content

Commit 59aad2b

Browse files
committed
fix: node 24 + clear .npmrc token for OIDC trusted publishing
1 parent bab324c commit 59aad2b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
18+
node-version: 24
1919
registry-url: https://registry.npmjs.org
2020

2121
- run: npm ci
@@ -27,8 +27,11 @@ jobs:
2727
id: version
2828
run: echo "version=$(node -p 'require("./package.json").version')" >> "$GITHUB_OUTPUT"
2929

30+
# Clear the token placeholder so npm falls through to OIDC auth.
3031
- name: Publish to npm
31-
run: npm publish --access public
32+
run: |
33+
npm config delete //registry.npmjs.org/:_authToken || true
34+
npm publish --access public
3235
3336
- name: Create git tag
3437
run: |

0 commit comments

Comments
 (0)