Skip to content

Update the npm publishing steps after the first release - #71

Merged
readingdancer merged 1 commit into
developfrom
docs/npm-first-publish
Nov 23, 2026
Merged

readingdancer merged 1 commit into
developfrom
docs/npm-first-publish

Conversation

@readingdancer

Copy link
Copy Markdown
Member

Summary

  • Rewrite "The first npm publish" for a new package: set up trusted publishing on npmjs.com before the first version exists (both permissions ticked), keep the 2FA step, set NPM_PUBLISH, let the first tagged release publish and validate it, then remove the 0.0.0-stage placeholder.
  • Reword step 4 of "The first release" so no manual 19.0.0-rc.1 publish is needed when npm is set up before the tag.
  • Replace the old failed-publish paragraph with "If a publish fails": listing delay, re-run versus publishing the .tgz by hand, and the relative tarball path fix (Fix the npm publish path in the release workflow #69).

Evidence

The first release (2026-11-23) showed that npm creates a 0.0.0-stage placeholder when trusted publishing is set up before a version exists, and that the first workflow publish validates the configuration. The v17.0.0 npm step failed because a relative tarball path was read as a GitHub user/repo; #69 passes the full path. nuget.org and npm took several minutes to list new versions.

Merge Danger

Door: two-way
Blast Radius: docs

🤖 Generated with Claude Code

https://claude.ai/code/session_01WAQdHxWd7ft8XjqRAeyGB6

Trusted publishing can now be set up before a package's first version exists, so the first tagged release publishes and validates it. Describe that setup, drop the manual first publish, and add the notes on failed publishes and the listing delay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WAQdHxWd7ft8XjqRAeyGB6
@readingdancer
readingdancer merged commit 34b6ec0 into develop Nov 23, 2026
7 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.

1 participant