SPFx Release Automation
Release a new SPFx version. The version argument is: $ARGUMENTS
Steps to perform:
- •
Update version in all files - Find and replace the old version with the new one in:
- •Dockerfile (generator-sharepoint version)
- •README.md (Available tags section - update latest, online, and add new version tag)
- •DevelopmentContainers.md (devcontainer.json example)
- •any other files you find references to the SPFx version.
- •
Commit changes with message:
SPFx v$ARGUMENTS - new version updates - •
Squash commits since last tag:
- •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
- •Get the last tag:
- •
Create new tag:
git tag v$ARGUMENTS - •
Push to GitHub:
- •Push branch:
git push origin master - •Push tag:
git push origin v$ARGUMENTS
- •Push branch:
Always confirm with the user before pushing.