Skip to content

fix(ci): remove npm@latest upgrade in release workflow - #405

Merged
jairo-bc merged 1 commit into
masterfrom
jairopanduro/fix-release-ci-npm-latest
Jul 13, 2026
Merged

fix(ci): remove npm@latest upgrade in release workflow#405
jairo-bc merged 1 commit into
masterfrom
jairopanduro/fix-release-ci-npm-latest

Conversation

@jairo-bc

Copy link
Copy Markdown
Contributor

What? Why?

  • Release workflow ran `npm i -g npm@latest` before install, picking up whatever npm CLI is newest each run
  • A recent npm release added a new default restriction (`EALLOWGIT`) blocking git-protocol dependencies
  • This repo's `semantic-release-github-pullrequest` devDependency points at a git fork — that install now fails, blocking every release since (visible on the last master push: https://github.com/bigcommerce/paper-handlebars/actions/runs/29261674007)
  • No engines.npm pin, lockfileVersion 3 works with any npm >=7 — just drop the forced upgrade, let actions/setup-node's bundled npm run install

How was it tested?

  • Verified locally: no engines/npm-version requirement in package.json
  • Commit message passes commitlint locally

The release workflow ran `npm i -g npm@latest` before installing
dependencies, silently picking up whatever npm CLI version was newest
each run. A recent npm release added a new default restriction
(EALLOWGIT) blocking git-protocol dependencies, breaking `npm i` for
this repo's semantic-release-github-pullrequest devDependency (a git
fork reference) and blocking every release since.

Nothing here requires a specific npm version (no engines.npm pin,
lockfileVersion 3 works with any npm >=7), so just drop the forced
upgrade and let actions/setup-node's bundled npm run the install.
@jairo-bc
jairo-bc marked this pull request as ready for review July 13, 2026 15:50
@jairo-bc
jairo-bc merged commit 3971afe into master Jul 13, 2026
13 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants