ci: fix Release workflow (Node 22) + add missing changeset - #5
Merged
Conversation
…types The Release workflow failed on every push to main: it runs `npm install -g npm@latest`, which now resolves npm@12 requiring Node >=22, while the job pinned Node 20 (EBADENGINE, exit 1) — so the merged type fix never published. Bump the release job to Node 22 so npm@latest installs and the OIDC Trusted Publisher path works. Also add the missing changeset so Changesets bumps @viz-cx/api and the already-merged read-path type fix actually gets released.
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.
Problem
The Release workflow has been failing on every push to
main, so merged changes never publish to npm. Root cause in the run logs:The job runs
npm install -g npm@latest(for OIDC Trusted Publisher support) but pins Node 20.npm@latestis now v12, which requires Node ≥22 → the step exits 1 before build/publish.Fix
npm@latestinstalls cleanly and the OIDC--provenancepublish path works. (CI workflow is unaffected — it does not upgrade npm; its 18/20/22 matrix stays.)Result
On merge, Changesets opens/lands the version bump and the OIDC publish step ships the patch to npm — no
NPM_TOKENneeded (Trusted Publisher).