chore: fix deploy by hardcoding npm 11 - #103
Merged
Merged
Conversation
npm 12 changed `npm show <pkg> versions --json` to wrap the version array in an outer array ([[...]]), which broke before-beta-release.js with "TypeError: v.startsWith is not a function". Since the publish workflow force-installs npm@latest, this silently regressed once npm 12 was released. Normalize the parsed output by flattening and keeping only strings, which also covers the case where npm returns a bare string for a single-version package. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S3skLbP3YnDAYp124zzaS5
npm 12.0.0's bundled libnpmpublish requires the top-level `sigstore` module but no longer bundles it, so `npm publish --provenance` fails with "Cannot find module 'sigstore'". Pin the global npm install to v11, which bundles sigstore and publishes correctly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S3skLbP3YnDAYp124zzaS5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.