Skip to content

Publish straight to npm from a two-job release workflow - #49

Merged
mgilardi merged 1 commit into
mainfrom
d355/direct-publish
Nov 28, 2026
Merged

mgilardi merged 1 commit into
mainfrom
d355/direct-publish

Conversation

@mgilardi

Copy link
Copy Markdown
Collaborator

The release workflow now publishes straight to npm, with no per-release approval step.

  • A build job checks that the tagged commit is on main, runs the existing checks and tests, and packs. It has no publishing rights.
  • A publish job runs in the npm-publish environment and publishes only the packed file, with provenance, through trusted publishing.
  • Actions are pinned to commit SHAs. RELEASING.md describes the new steps.

Not tested: a real Actions run and npm trusted publishing.

🤖 Generated with Claude Code

The owner chose to release without a per-release approval step. The build job tests and packs with no publishing rights. The publish job only publishes the packed file, with provenance, in the npm-publish environment. Actions are pinned to commit SHAs. RELEASING.md describes the new steps.

Not tested: a real Actions run and npm trusted publishing. The change was checked against copies of each repo's files with a stand-in npm.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mgilardi
mgilardi merged commit e24f6ac into main Nov 28, 2026
1 check 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