Skip to content

CI - Fix npm dry run, and release dry runs actually testing the specified branch - #5636

Merged
bfops merged 6 commits into
masterfrom
bfops/npm-dry-run
Jul 31, 2026
Merged

CI - Fix npm dry run, and release dry runs actually testing the specified branch#5636
bfops merged 6 commits into
masterfrom
bfops/npm-dry-run

Conversation

@bfops

@bfops bfops commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Description of Changes

Closes #5635.

tl;dr it seems like newer versions of npm publish actually check whether the package version is already published. This causes release dry runs to fail when they didn't before.

Fixed by adding --force

This also fixes a bug in the release workflow, so that release dry runs check out the specific ref that the workflow is running from, rather than the release tag. Unfortunately these two independent fixes need to be bundled into a single PR, because neither can pass CI without the other right now.

Edit post-merge: I'm wrong; that second bugfix wasn't required to make this pass. I'm not sure why I got the CI failure I did originally, then.. but either way it's a good bugfix.

API and ABI breaking changes

none

Expected complexity level and risk

2

Testing

  • Release dry run passes on this PR

@bfops
bfops changed the base branch from master to bfops/fix-dry-run July 31, 2026 10:08
@bfops bfops mentioned this pull request Jul 31, 2026
1 task
@bfops
bfops marked this pull request as ready for review July 31, 2026 10:24
Comment thread demo/Blackholio/client-ts/package.json Outdated
Comment thread demo/Blackholio/server-ts/package.json Outdated
Comment thread tools/release/src/targets/npm.rs
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
Comment thread tools/release/src/targets/npm.rs
@bfops
bfops changed the base branch from bfops/fix-dry-run to master July 31, 2026 10:46
@bfops bfops changed the title CI - Fix npm dry run CI - Fix npm dry run, and release dry runs actually testing the specified branch Jul 31, 2026

@jdetter jdetter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, not manually tested by me

@bfops
bfops added this pull request to the merge queue Jul 31, 2026
Merged via the queue into master with commit 5aceaad Jul 31, 2026
68 of 72 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.

fix npm dry run publish failures

2 participants