一键导入
release
// Run the pi-cache-graph maintainer release workflow. Use when asked to do `/release major`, `/release minor`, or `/release patch` from this repository, including version bumping, tagging, pushing, and triggering npm publication.
// Run the pi-cache-graph maintainer release workflow. Use when asked to do `/release major`, `/release minor`, or `/release patch` from this repository, including version bumping, tagging, pushing, and triggering npm publication.
| name | release |
| description | Run the pi-cache-graph maintainer release workflow. Use when asked to do `/release major`, `/release minor`, or `/release patch` from this repository, including version bumping, tagging, pushing, and triggering npm publication. |
This skill is specific to the pi-cache-graph repository.
Use it when the user wants to cut a new release of this package with one of these semantic version bump types:
majorminorpatchFor this repo, a release means:
vX.Y.Z)The canonical release implementation lives in:
scripts/release.mjsThe npm publish step is handled by:
.github/workflows/publish.ymlThat workflow runs on pushed tags matching v<semver> and executes npm publish --access public with the repo's NPM_TOKEN secret.
When using this skill:
major, minor, or patch.npm publish unless the user explicitly asks for a manual fallback.
Before running the release script, verify or rely on the script's checks for all of the following:
pi-cache-graphmajor | minor | patchmainorigin/mainRun this from the repo root:
node scripts/release.mjs <major|minor|patch>
Examples:
node scripts/release.mjs patch
node scripts/release.mjs minor
node scripts/release.mjs major
The helper script is the source of truth for the mutating steps. It:
mainorigin/mainnpm run checknpm testnpm pack --dry-runnpm version <type> -m "release: v%s"
package.jsonpackage-lock.jsonmainUse a concise summary like:
OLD_VERSION -> NEW_VERSIONvNEW_VERSIONmain and vNEW_VERSION to originIf the script fails:
npm version already succeeded, mention that a release commit and tag may already exist locallyTypical recovery hints:
main: switch to mainmain or the tag fails: inspect remote/auth state before retrying/release ...This repo also defines a prompt template at .pi/prompts/release.md.
When a user invokes /release major, /release minor, or /release patch, that prompt should route into this skill and then run the canonical script above.