mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
16 lines
460 B
Bash
Executable file
16 lines
460 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
VERSION=$(jq -r .version package.json)
|
|
MAJOR_VERSION=$(echo "$VERSION" | cut -d. -f1)
|
|
|
|
# push changes to github
|
|
git push
|
|
# push the current tag to github
|
|
git push origin "v$VERSION"
|
|
# set the major version tag to this release
|
|
git tag "v$MAJOR_VERSION" -f
|
|
# push the major version tag to github
|
|
git push origin "v$MAJOR_VERSION" -f
|
|
# create a release on github
|
|
gh release create "v$VERSION" --generate-notes --verify-tag
|