Skip to content

Use Node 24 for trusted publishing - #8

Merged
ScottMorris merged 1 commit into
mainfrom
ci/node-24-for-publish
Oct 15, 2026
Merged

ScottMorris merged 1 commit into
mainfrom
ci/node-24-for-publish

Conversation

@ScottMorris

Copy link
Copy Markdown
Contributor

Summary

  • Fix the publish job. npm install -g npm@^11.5.1 failed on the runner with EACCES (the system Node directory is not writable), so the 0.2.0 publish never ran. The job now uses Node 24 from actions/setup-node, whose bundled npm supports trusted publishing, and a new step fails clearly if npm is older than 11.5.1.

Test plan

  • Workflow parses; bunx prettier --check .github
  • CI is green on this pull request
  • After merge: re-run the Release workflow for v0.2.0 and approve npm-publish

…npm in place

**Summary**

- The publish job now sets up Node 24 and checks that its npm is 11.5.1 or newer, instead of running `npm install -g npm@^11.5.1`.

**Why**

- On the runner the in-place upgrade failed with `EACCES` creating `/usr/local/share/man/man5`, because the system Node is not writable, so the `0.2.0` publish stopped before it started.

**Details**

- `actions/setup-node` installs Node 24 into the runner's tool cache, whose npm supports trusted publishing, and a new step fails with a clear message if the version is ever too old.
@ScottMorris ScottMorris added the ci Continuous integration workflows and checks label Oct 15, 2026
@ScottMorris
ScottMorris merged commit 5e50cfa into main Oct 15, 2026
5 checks passed
@ScottMorris
ScottMorris deleted the ci/node-24-for-publish branch October 15, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous integration workflows and checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant