Skip to content

Instantly share code, notes, and snippets.

@willvincent
Created December 23, 2025 19:09
Show Gist options
  • Select an option

  • Save willvincent/9ae1462f0eba05528ed9ac8b7e0a7fe4 to your computer and use it in GitHub Desktop.

Select an option

Save willvincent/9ae1462f0eba05528ed9ac8b7e0a7fe4 to your computer and use it in GitHub Desktop.
Script to tag and push a release
#!/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