ci: add manual patch release workflow#12
Merged
Merged
Conversation
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.
Summary
Replace the release-event-only npm workflow with an explicit, manual release operation. Running the
Releaseworkflow from currentmainnow computes the next patch version, validates and packages that artifact, publishes it to npm, and only then publishes the corresponding GitHub release.The first run uses
package.json's0.1.0as the seed and releases0.1.1. Later runs increment the highest stablevX.Y.Ztag.Design
Manual and guarded execution
workflow_dispatchso maintainers get GitHub's Run workflow button.main.origin/mainso a stale dispatch cannot release an older commit.releaseconcurrency group.Patch-only version policy
Publication ordering
If npm publication fails, the GitHub release remains a draft rather than advertising an unavailable package.
Operational notes
The bootstrap publish still requires repository secret
NPM_TOKEN. After the package exists, configure npm trusted publishing forlan17/DialCacheandrelease.yaml, then remove the long-lived token and its workflow environment mapping.No application API, Redis protocol, runtime behavior, or package exports change.
Validation
Validated on Node
v22.22.0:corepack pnpm install --frozen-lockfilecorepack pnpm checkcorepack pnpm audit --prod— no known vulnerabilitiesgo run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/ci.yaml .github/workflows/release.yaml .github/workflows/validate-pr-title.yamldialcache@0.1.1npm publish --dry-run --provenance=false --access public— 24-file packagegit diff --check