Skip to content

Fix publish workflow failure caused by npm/Node engine mismatch#9

Merged
hustcc merged 2 commits into
masterfrom
copilot/fix-publish-actions-job
Jul 9, 2026
Merged

Fix publish workflow failure caused by npm/Node engine mismatch#9
hustcc merged 2 commits into
masterfrom
copilot/fix-publish-actions-job

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The publish GitHub Actions job was failing before install/build/test because it upgraded to npm@latest while still running on Node 20. Recent npm releases require a newer Node runtime, so the workflow exited with an EBADENGINE error.

  • Workflow runtime update

    • Bump the publish job from Node 20 to Node 24 in .github/workflows/publish.yml
    • Keep the existing trusted publishing flow and npm@latest upgrade step unchanged
  • Why this fixes the failure

    • The job currently does:

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '24'
          registry-url: 'https://registry.npmjs.org'
      
      - name: Update npm
        run: npm install -g npm@latest
    • This aligns the runtime with the engine requirements of current npm releases so the publish pipeline can proceed to dependency install, build, test, and publish

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job 'publish' Fix publish workflow failure caused by npm/Node engine mismatch Jul 9, 2026
Copilot finished work on behalf of hustcc July 9, 2026 10:42
Copilot AI requested a review from hustcc July 9, 2026 10:42
@hustcc
hustcc marked this pull request as ready for review July 9, 2026 10:43
@hustcc
hustcc merged commit c774244 into master Jul 9, 2026
2 checks passed
@hustcc
hustcc deleted the copilot/fix-publish-actions-job branch July 9, 2026 10:44
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