Skip to content

feat: add optional version input to node-trusted-publish#173

Merged
robdmoore merged 1 commit into
mainfrom
feat/trusted-publish-version-input
Jul 8, 2026
Merged

feat: add optional version input to node-trusted-publish#173
robdmoore merged 1 commit into
mainfrom
feat/trusted-publish-version-input

Conversation

@robdmoore

Copy link
Copy Markdown
Member

What

Adds an optional version input to the reusable node-trusted-publish.yml workflow. When set, the package version is overridden before build/publish via npm version <version> --no-git-tag-version --allow-same-version.

Why

Enables prerelease/beta publishing where the version is computed by the caller at publish time (e.g. 1.0.0-beta.42) rather than committed to the repo. Callers can pass a computed prerelease version plus tag: beta to publish a beta from an ordinary merge, without polluting the repo history with prerelease version bumps.

Compatibility

Fully backward compatible — the input defaults to '', in which case the committed version is published exactly as before.

🤖 Generated with Claude Code

Allows callers to override the package version at publish time via
`npm version --no-git-tag-version` before build/publish. Backward
compatible (default empty = publish the committed version).

Enables prerelease/beta publishing where the version is computed in the
caller (e.g. `1.0.0-beta.42`) rather than committed to the repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🛡️ SHA Pinned Actions Report

✅ All 28 file(s) passed — actions are allowed and pinned as required.

@robdmoore robdmoore enabled auto-merge July 8, 2026 09:15
@robdmoore robdmoore merged commit 28ab4b7 into main Jul 8, 2026
1 check passed
@robdmoore robdmoore deleted the feat/trusted-publish-version-input branch July 8, 2026 09:15
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.

2 participants