Repository navigation
ci: add manual snapshot release workflow - #305
Merged
Merged
Conversation
Adds a "Release Snapshot" workflow that publishes any branch to npm as 0.0.0-<branch>-<timestamp> under the `snapshot` dist-tag, so it can be installed in other projects before merging. Triggered manually from the Actions tab or with `gh workflow run release-snapshot.yml --ref <branch>`. The branch doesn't need a changeset: a temporary one is added inside the run. The dependency cache is disabled because the job runs branch code in main's cache scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a Release Snapshot workflow that publishes any branch to npm, so it can be installed in other projects before it's merged.
gh workflow run release-snapshot.yml --ref <branch>0.0.0-<branch>-<timestamp>, e.g.0.0.0-feat-tiered-fix-20261106143000snapshotdist-tag, solatestis never touchedpnpm add @epilot/pricing@<version>) is shown in the run summaryHow
Same approach as
vercel-labs/mcp-handler'srelease-snapshot.yml:changeset version --snapshotfollowed bychangeset publish --tag snapshot --no-git-tag, via the existingreleaseandrelease:publishscripts.0.0.0-*version, so it can never republish a real release.main's cache scope, and a poisoned cache could later be restored by the Release job.ci-cd.ymlis unchanged. npm now supports multiple trusted publishers per package, so this lives in its own file.Setup after merge
@epilot/pricing→ Settings → Trusted publishing and add a GitHub Actions publisher:epilot-dev/pricingrelease-snapshot.ymlsnapshottag, turn it on.mainmerged in before they show the Run workflow option.Testing
bash -n.feat/Tiered_Fixthey produced0.0.0-feat-tiered-fix-<timestamp>and the expected summary.🤖 Generated with Claude Code