Skip to content

Commit

Permalink
build: add prerelease script.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016 committed May 27, 2023
1 parent 8efc6bc commit c963c2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/prerelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

if [ -z $VERSION ]; then
echo "VERSION env variable is not set. Please set it to the version you want to release."
exit 1
fi

npm --no-git-tag-version version $VERSION;

echo ":wq" | git-changelog --all --prune-old --tag v$VERSION;
echo ""
echo "[prelease] enforce publish release by running 'git-release v$VERSION'"
echo ""

0 comments on commit c963c2e

Please sign in to comment.