mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 13:50:33 +00:00
updated postversion script
This commit is contained in:
parent
015cd77f75
commit
0e7eb33465
2 changed files with 15 additions and 2 deletions
13
scripts/postversion.sh
Executable file
13
scripts/postversion.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
VERSION=$(jq -r .version package.json)
|
||||
|
||||
# push the current tag to github
|
||||
git push origin "v$VERSION"
|
||||
# set the v1 tag to this release
|
||||
git tag v1 -f
|
||||
# push the v1 tag to github
|
||||
git push origin v1 -f
|
||||
# create a release on github
|
||||
gh release create "v$VERSION" --generate-notes --verify-tag
|
||||
Loading…
Add table
Add a link
Reference in a new issue