Skip to content

Commit 90b3a3c

Browse files
chore(publish-npm): default Node.js runtime to 24
Upgrade the publish-npm and publish-npm-packages action defaults from Node 20 to Node 24 so OIDC publishing can use current npm without a Node 20 engine pin. Co-authored-by: Ryan Zhu <zhuhaoyu0909@icloud.com>
1 parent 0f4f42c commit 90b3a3c

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/blocks/publish-npm-packages/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
node-version:
1313
description: '[string] Node.js version'
1414
required: false
15-
default: '20'
15+
default: '24'
1616
tag:
1717
description: "[string] NPM tag (e.g., 'latest', 'beta')"
1818
required: false

.github/blocks/publish-npm/action.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
node-version:
1010
description: '[string] Node.js version'
1111
required: false
12-
default: '20'
12+
default: '24'
1313
working-directory:
1414
description: '[string] Directory containing package.json'
1515
required: false
@@ -46,9 +46,10 @@ runs:
4646
node-version: ${{ inputs.node-version }}
4747
registry-url: 'https://registry.npmjs.org'
4848

49-
# npm OIDC Trusted Publishing requires npm >= 11.5.1, but Node 20 ships
50-
# npm 10.x. Without this, the OIDC publish below signs provenance yet can't
51-
# authenticate tokenlessly, so it publishes unauthenticated and 404s.
49+
# npm OIDC Trusted Publishing requires npm >= 11.5.1. Node's bundled npm
50+
# can be older (e.g. Node 20 ships npm 10.x). Without this, the OIDC publish
51+
# below signs provenance yet can't authenticate tokenlessly, so it publishes
52+
# unauthenticated and 404s.
5253
- name: Upgrade npm for OIDC Trusted Publishing
5354
shell: bash
5455
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ Builds and publishes multiple monorepo packages to npm in dependency order. Supp
11031103
|-------|------|----------|---------|-------------|
11041104
| `changed-packages` | string | Yes | — | JSON array of packages in topological order |
11051105
| `bun-version` | string | No | `latest` | Bun version |
1106-
| `node-version` | string | No | `20` | Node.js version |
1106+
| `node-version` | string | No | `24` | Node.js version |
11071107
| `tag` | string | No | `latest` | npm dist-tag |
11081108
| `build-command` | string | No | `bun run build` | Per-package build command (ignored if `root-build-command` is set) |
11091109
| `root-build-command` | string | No | `""` | Build once at repo root (e.g., `turbo build`) |
@@ -1254,7 +1254,7 @@ Publishes a single package to npm (installs dependencies, builds, publishes). Tr
12541254
| Input | Type | Required | Default | Description |
12551255
|-------|------|----------|---------|-------------|
12561256
| `bun-version` | string | No | `latest` | Bun version |
1257-
| `node-version` | string | No | `20` | Node.js version |
1257+
| `node-version` | string | No | `24` | Node.js version |
12581258
| `working-directory` | string | No | `.` | Directory containing `package.json` |
12591259
| `build-command` | string | No | `bun run build` | Build command |
12601260
| `tag` | string | No | `latest` | npm dist-tag |

0 commit comments

Comments
 (0)