release-tag
Overview
Completes the release by fetching the latest main, creating an annotated git tag, and pushing it to trigger the .github/workflows/release.yml deploy pipeline.
Run this after the release branch has been merged into main (i.e., after /release-branch completes and the merge is confirmed).
Workflow
1. Fetch and switch to latest main
git checkout main
git pull origin main
2. Determine the version to tag
Read the current version from package.json:
node -p "require('./package.json').version"
# Example output: 2.5.0
NEW_VERSION=<version>
3. Create git tag
git tag -a v<NEW_VERSION> -m "Release v<NEW_VERSION>"
4. Push tag (deploy trigger)
git push origin v<NEW_VERSION>
Pushing the tag triggers the .github/workflows/release.yml workflow which runs the full release pipeline (build, publish).
Important Notes
- Tags must use the
vprefix (e.g.,v2.5.0). - Tags are applied to the
mainbranch only. - If
npm publishis applicable for this project, the.github/workflows/release.ymlworkflow handles it automatically on tag push.
Source: gendosu/agkan — distributed by TomeVault.