Skip to content

Commit 4258fa8

Browse files
committed
fix: use Node 24 for npm 11.5.1+ OIDC trusted publishing
1 parent c0a2b1b commit 4258fa8

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ jobs:
3434

3535
- uses: actions/setup-node@v4
3636
with:
37-
node-version: 22
37+
node-version: 24
3838
registry-url: https://registry.npmjs.org
3939
cache: npm
4040

4141
- run: npm ci
4242
- run: npm test
43+
- run: echo "node=$(node -v) npm=$(npm -v)"
4344

4445
- name: Configure git
4546
run: |
@@ -98,16 +99,11 @@ jobs:
9899
99100
- name: Publish to npm
100101
if: inputs.dry-run == false
101-
run: |
102-
# Overwrite .npmrc — remove _authToken so npm uses OIDC Trusted Publishing
103-
echo "registry=https://registry.npmjs.org/" > "$NPM_CONFIG_USERCONFIG"
104-
npm publish --provenance --access public
102+
run: npm publish --access public
105103

106104
- name: Publish to npm (dry run)
107105
if: inputs.dry-run == true
108-
run: |
109-
echo "registry=https://registry.npmjs.org/" > "$NPM_CONFIG_USERCONFIG"
110-
npm publish --provenance --access public --dry-run
106+
run: npm publish --access public --dry-run
111107

112108
- name: Create GitHub Release
113109
if: inputs.dry-run == false

0 commit comments

Comments
 (0)