원클릭으로
release
Commit, bump version, publish (npm for prod, git-tag-only for staging), and push. Run after changes are ready to release.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Commit, bump version, publish (npm for prod, git-tag-only for staging), and push. Run after changes are ready to release.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | release |
| description | Commit, bump version, publish (npm for prod, git-tag-only for staging), and push. Run after changes are ready to release. |
| disable-model-invocation | false |
| allowed-tools | Bash, Read, Grep, Glob |
latest dist-tag. Users on @structbuild/sdk get this.staging as the argument. Does NOT publish to npm. Ships via a git tag (vX.Y.Z-staging.N) on the staging branch; consumers install with a GitHub ref. This keeps the npm latest tag pinned to the last prod release and avoids polluting npm with staging prereleases.Run git status and git diff --stat to see what needs to be committed. If there are no changes, skip to Step 3 (version bump).
git log --oneline -5 to match the commit message stylegit add -A)Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> trailerpackage.json directly to bump the -staging.N suffix (e.g. 0.6.0-staging.3 → 0.6.0-staging.4). Do not use npm version — it auto-creates a tag that we want to create explicitly in Step 4 after the version-bump commit is in place. Stage and commit package.json together with the spec/code changes from Step 2 (one combined commit is fine).minor, major, prepatch, preminor, premajor, prerelease), use that: npm version <type>. Otherwise default to npm version patch. npm version auto-commits the bump and creates a git tag.Staging mode (git tag only, NO npm publish):
git push origin staging — push the version-bump commit.git tag vX.Y.Z-staging.N at HEAD (lightweight tag is fine; annotate if you want a message).git push origin vX.Y.Z-staging.N — push the tag.npm publish in staging mode. Staging releases are consumed via GitHub refs only.Prod mode: npm publish. Then git push and git push --tags (the version tag was created by npm version).
For staging releases, consumer repos pinning @structbuild/sdk via a GitHub ref need their package.json bumped manually:
"@structbuild/sdk": "github:structbuild/struct-typescript-sdk#vX.Y.Z-staging.N"
Then reinstall with the consumer's package manager — check the consumer's packageManager field (or its lockfile) and use that. Don't assume bun; explorer-style repos may use pnpm/npm/yarn and running the wrong installer will create a stray lockfile.
This step is skipped for prod mode (consumers pull from npm).
Print the new version number, how it was published (npm dist-tag for prod; git tag + branch for staging), and the install instructions:
bun add @structbuild/sdk / pnpm add @structbuild/sdk (resolves to npm latest)."@structbuild/sdk": "github:structbuild/struct-typescript-sdk#vX.Y.Z-staging.N" in the consumer's package.json, then install with their package manager.We previously published staging prereleases to npm under a staging dist-tag. We stopped because:
If you find yourself wanting to npm publish --tag staging again, push back on the user and confirm — the answer is almost always "no, use a git tag."