Skip to content

Publish job: install with npm 10, publish with npm 11 - #25

Merged
hamza-aamer merged 1 commit into
mainfrom
ci/npm-publish-order
Nov 5, 2026
Merged

hamza-aamer merged 1 commit into
mainfrom
ci/npm-publish-order

Conversation

@hamza-aamer

Copy link
Copy Markdown
Contributor

the 4.1.0 publish on main failed before publishing: npm ci with npm 11 rejects our package-lock.json ("Missing: @rollup/rollup-darwin-arm64 ... from lock file", npm 11 is stricter about optional platform packages). the build job uses node 20 / npm 10 and passes.

now the publish job installs with node 20's npm like the build job, and only upgrades to npm >= 11.5.1 for npm publish (needed for trusted publishing).

checked locally: npm 10 npm ci, then npm 11.21.2 publish --dry-run: build, 44/44 tests, browser check, reaches the publish step. merging this publishes 4.1.0 (version is still newer than npm's 4.0.1).

npm 11's npm ci rejects package-lock.json (optional rollup platform packages missing), which failed the 4.1.0 publish on main. Install with Node 20's npm like the build job, then switch to npm >= 11.5.1 only for the trusted publish.
@hamza-aamer
hamza-aamer merged commit 8c7563d into main Nov 5, 2026
2 checks passed
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