Skip to content

fix(ci): remove global npm upgrade from publish workflow#71

Merged
iamfj merged 1 commit into
mainfrom
fix/publish-workflow
Apr 7, 2026
Merged

fix(ci): remove global npm upgrade from publish workflow#71
iamfj merged 1 commit into
mainfrom
fix/publish-workflow

Conversation

@iamfj
Copy link
Copy Markdown
Member

@iamfj iamfj commented Apr 7, 2026

Problem

The publish workflow fails at the Update npm step with:

npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'

npm install -g npm@latest on Node 22.22.2 GitHub runners corrupts npm's own internal dependencies during the self-upgrade.

See: https://github.com/czottmann/linearis/actions/runs/24092632590/job/70282838576

Fix

Remove the npm install -g npm@latest step entirely. Node 22 ships with npm 10.x which already supports --provenance publishing (requires npm ≥ 9.5.0). The forced global upgrade is unnecessary.

After merge

Re-tag and push to re-trigger the publish:

git tag -d v2026.4.1
git push origin :refs/tags/v2026.4.1
git tag -a v2026.4.1 -m "Release 2026.4.1"
git push origin v2026.4.1

The 'npm install -g npm@latest' step fails on Node 22.22.2 runners
because the self-upgrade corrupts npm's internal dependencies
(Cannot find module 'promise-retry').

Node 22 ships with npm 10.x which already supports --provenance
publishing. The forced upgrade is unnecessary.
@iamfj iamfj merged commit 4a0cc1f into main Apr 7, 2026
2 checks passed
@iamfj iamfj deleted the fix/publish-workflow branch April 21, 2026 21:16
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.

1 participant