Skip to content

Commit 516bf3c

Browse files
authored
ci: use Node.js 24 for wasm publishing (#12038)
**Description:** The WASM publishing matrix was still using Node.js 20 while installing `npm@latest`. In the failed publish run, that resolved to npm 12.0.1, which requires Node.js `^22.22.2 || ^24.15.0 || >=26.0.0`, so all six WASM packages failed in the `Update npm` step with `EBADENGINE`. Use Node.js 24 for the WASM publish jobs, matching the repository's default Node.js version and the regular npm publish job that successfully installed the same npm release. This only changes the publishing environment and does not change the published packages' runtime compatibility. Validation: - `actionlint 1.7.12 -color -shellcheck=` - `git diff --check` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` **Related issue (if exists):** - Failed workflow: https://github.com/swc-project/swc/actions/runs/29675399141
1 parent 1b17f34 commit 516bf3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-npm-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ jobs:
796796
- name: Setup node
797797
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
798798
with:
799-
node-version: 20
799+
node-version: 24
800800

801801
- name: Install node dependencies
802802
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)