一键导入
spfx-release
Automate SPFx version releases - branch, update files, commit, open PR, then tag after merge
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automate SPFx version releases - branch, update files, commit, open PR, then tag after merge
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | spfx-release |
| description | Automate SPFx version releases - branch, update files, commit, open PR, then tag after merge |
| disable-model-invocation | false |
| allowed-tools | Bash, Read, Edit, Grep |
| argument-hint | [version] |
Release a new SPFx version. The version argument is: $ARGUMENTS
Before making changes, verify:
git status). If there are unrelated uncommitted changes, stop and ask the user how to handle them.Dockerfile, README.md, or DevelopmentContainers.md — if it is, the release may already be in flight; surface this and ask before continuing.v$ARGUMENTS does not already exist locally or on origin (git tag --list, git ls-remote --tags origin).Create a release branch from the latest main:
git checkout main && git pull
git checkout -b release/v$ARGUMENTS
Branch name must be valid git (no spaces, no colons).
Update version in all files — find and replace the old version with $ARGUMENTS in:
Dockerfile (generator-sharepoint version)README.md (Available tags section — update latest, online, and add the new version row)DevelopmentContainers.md (devcontainer.json example)grep -rn "<old-version>" to catch any other references.Commit changes with message: SPFx v$ARGUMENTS - new version updates
Squash commits on the release branch (release branch only — never on main, since unrelated commits between the last tag and HEAD would get folded in):
git describe --tags --abbrev=0git reset --soft <last-tag>Push the branch and open a PR (confirm with user first):
git push -u origin release/v$ARGUMENTS
gh pr create --title "feat: new SPFx version v$ARGUMENTS" --body "..."
After the PR merges, create and push the tag against the merged commit on main:
git checkout main && git pull
git tag v$ARGUMENTS
git push origin v$ARGUMENTS
Confirm with the user before pushing the tag.
Always confirm with the user before any push or PR creation.