-
Notifications
You must be signed in to change notification settings - Fork 1
Fix v0.13.1 release blockers: npm CLI version + empty-wheel guard #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
074539e
ebbcef4
903d8ab
845dfd3
f575e16
a4523d3
4c8a0ee
717795a
c7fdc41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,8 +173,32 @@ jobs: | |
| cache: false | ||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: "20" | ||
| # Node 24 ships npm 11.x. npm Trusted Publishing | ||
| # requires npm >= 11.5; older CLIs silently fall back | ||
| # to token auth and the registry returns 404 for | ||
| # missing-credential publishes (404 instead of 401 so | ||
| # package existence isn't leaked). | ||
| node-version: "24" | ||
| registry-url: "https://registry.npmjs.org" | ||
|
Comment on lines
174
to
182
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same response as on the line 201 thread: this is intentional. The PR description in this branch was updated when we replaced The version-guard step that runs after Generated by Claude Code |
||
| - name: Verify npm >= 11.5 for Trusted Publishing | ||
| # Defensive guardrail: even though Node 24 currently ships | ||
| # npm 11.x, a future Node 24 patch could bundle an older | ||
| # CLI. If npm < 11.5 the publish would silently 404. | ||
| run: | | ||
| actual=$(npm --version) | ||
| echo "npm version: $actual" | ||
| node -e ' | ||
| const v = process.argv[1].split(".").map(Number); | ||
| const min = [11, 5, 0]; | ||
| for (let i = 0; i < 3; i++) { | ||
| if (v[i] > min[i]) process.exit(0); | ||
| if (v[i] < min[i]) { | ||
| console.error("npm " + process.argv[1] + | ||
| " is too old for Trusted Publishing (need >= 11.5.0)"); | ||
| process.exit(1); | ||
| } | ||
| } | ||
| ' "$actual" | ||
|
jeduden marked this conversation as resolved.
|
||
| - name: Stamp tracked manifests with the tag | ||
|
jeduden marked this conversation as resolved.
|
||
| env: | ||
| VERSION: ${{ github.ref_name }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.