Skip to content

Commit f861ad9

Browse files
authored
chore(🐙): update node for npm publishing (#397)
1 parent 605ad94 commit f861ad9

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ jobs:
2424
with:
2525
github_token: ${{ secrets.GITHUB_TOKEN }}
2626

27-
# Tokenless trusted publishing requires npm >= 11.5; Node 22 ships npm 10.
28-
- name: Upgrade npm
29-
run: npm install -g npm@latest
27+
# Tokenless trusted publishing needs npm >= 11.5.1. The repo's .nvmrc
28+
# pins Node 22 (npm 10), and `npm install -g npm@latest` self-upgrade is
29+
# broken on that npm (MODULE_NOT_FOUND 'promise-retry'). So switch the
30+
# publish steps to Node 24, which already bundles npm 11.6+.
31+
- name: Use Node with npm 11+
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: "24"
35+
registry-url: "https://registry.npmjs.org"
3036

3137
- name: Build packages
3238
run: yarn turbo run build --filter='./packages/*'

0 commit comments

Comments
 (0)