mise-action/scripts/postversion.sh

16 lines
361 B
Bash
Raw Normal View History

2023-12-14 08:49:28 -06:00
#!/usr/bin/env bash
set -euxo pipefail
VERSION=$(jq -r .version package.json)
2023-12-19 10:40:33 -06:00
# push changes to github
git push
2023-12-14 08:49:28 -06:00
# push the current tag to github
git push origin "v$VERSION"
# set the v1 tag to this release
2024-01-04 11:30:04 -06:00
git tag v2 -f
2023-12-14 08:49:28 -06:00
# push the v1 tag to github
2024-01-04 11:30:04 -06:00
git push origin v2 -f
2023-12-14 08:49:28 -06:00
# create a release on github
gh release create "v$VERSION" --generate-notes --verify-tag