Repository navigation
Stage the npm package from a file path, and check staging before a release - #48
Conversation
npm read `npm-tarball/<file>` as a GitHub repository and refused to fetch it, so the v2.1.3 release stopped at staging. The path now starts with `./`. The tested commit is now tagged after the package is staged, so a failed staging leaves no tag and a fixed workflow can release the same version again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release stages the packed tarball with `npm stage publish`. The full check now runs the same command with `--dry-run`, with the same Node and npm, so a command that cannot read the file fails before a release tags anything. The job holds no npm credential and sends nothing to npm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
v2.1.3 is ready to release. To release it, comment The release then runs by itself:
You can also start it from Actions → Release cross-platform → Run workflow on |
|
/release |
|
Started the release of |
|
v2.1.3 is staged on npm and waiting for your approval. The full check passed. Approve it in one of two ways. Both ask for your two-factor code.
Then check it from any folder: |
The v2.1.3 release passed the full check, then stopped at npm staging. Nothing reached npm, and no GitHub release was made. This fixes the staging step.
What went wrong
The staging step ran
npm stage publish "npm-tarball/athleticstandard-2.1.3.tgz". npm 12 reads a path of the formname/fileas a GitHub repository, so it refused withEALLOWGIT ... Refusing to fetch "github:npm-tarball/athleticstandard-2.1.3.tgz". No earlier release run had reached this step.The fix
./, so npm reads it as a file.v2.1.3on the Version 2.1.3: an optional host for sharing a record #47 merge commit, which blocks the next release until it is removed.validate.yml) now runs the same staging command with--dry-run, with the same Node and npm, so this kind of mistake fails before a release tags anything. The job holds no npm credential and sends nothing to npm.How it was checked
athleticstandard-2.1.3.tgz, SHA-256f81e9eea…) was downloaded from the failed run and staged with npm 12.2.3 in dry-run mode, with no npm login. The old command fails with the sameEALLOWGITerror. The new command reads the file (64 files, 16.6 MB) and stagesathleticstandard@2.1.3underlatest.publishoff, so the new dry-run job runs on GitHub's runner.cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(786 passed), and the npmci,typecheck, andteststeps (101 passed) pass.Not checked
A dry run cannot test the npm trusted publisher, which signs the workflow in to npm. npm 12 gives a trusted publisher two separate permissions, publish and stage publish, and both are off unless chosen. This package has never been published from a workflow, so check that its trusted publisher allows stage publish before releasing.
🤖 Generated with Claude Code