Skip to content

Pin publish workflow npm upgrade to Node 20-compatible range - #38

Closed
jonobr1 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-publish-job-failure
Closed

Pin publish workflow npm upgrade to Node 20-compatible range#38
jonobr1 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-publish-job-failure

Conversation

Copilot AI commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

The publish Actions job failed because npm@latest now resolves to npm 12, which does not support the workflow鈥檚 Node 20 runtime. This updates the workflow to keep npm in the intended modern range without crossing the Node compatibility boundary.

  • Root cause addressed

    • Replace floating npm@latest with a Node 20-compatible npm range.
  • Workflow change

    • In .github/workflows/publish.yml, update the npm upgrade step to install npm 11.5.1+ within major 11.
# Ensure npm 11.5.1 or later is installed (Node 20 compatible)
- name: Update npm
  run: npm install -g npm@^11.5.1
  • Effect
    • Preserves the publish job鈥檚 Node 20 toolchain while preventing future breakage from npm major-version drift.

Co-authored-by: jonobr1 <220033+jonobr1@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job publish Pin publish workflow npm upgrade to Node 20-compatible range Sep 5, 2026
Copilot AI requested a review from jonobr1 September 5, 2026 06:40
@jonobr1 jonobr1 closed this Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants