smithery/pnp

spfx-release

Automate SPFx version releases - branch, update files, commit, open PR, then tag after merge

Installation

$ npx skills add smithery/pnp --skill spfx-release

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/pnp.

npx skills add smithery/pnp

Browse all from smithery/pnp

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Edit, Grep

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,295 B
  • docs SUMMARY.md 103 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

SPFx Release Automation

Release a new SPFx version. The version argument is: $ARGUMENTS

Pre-flight checks

Before making changes, verify:

  1. Working tree is clean (git status). If there are unrelated uncommitted changes, stop and ask the user how to handle them.
  2. The new version is not already present in Dockerfile, README.md, or DevelopmentContainers.md — if it is, the release may already be in flight; surface this and ask before continuing.
  3. The tag v$ARGUMENTS does not already exist locally or on origin (git tag --list, git ls-remote --tags origin).

Steps to perform

  1. 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).

  1. 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) - Run grep -rn "<old-version>" to catch any other references.

  1. Commit changes with message: SPFx v$ARGUMENTS - new version updates
  1. 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):

- Get the last tag: git describe --tags --abbrev=0 - Soft reset to that tag: git reset --soft <last-tag> - Re-commit with the same message.

  1. 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 "..." ``

  1. 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.