Created
December 23, 2025 19:09
-
-
Save willvincent/9ae1462f0eba05528ed9ac8b7e0a7fe4 to your computer and use it in GitHub Desktop.
Script to tag and push a release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -ex | |
| git checkout master | |
| git pull -r | |
| yarn standard-version # bump version, update CHANGELOG | |
| git push --follow-tags origin master | |
| # Get this latest tag we just created (version) | |
| VERSION=$(git describe) | |
| # Move the production branch to this new release | |
| git branch -f production $VERSION | |
| # Push production | |
| git push -f origin production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment