mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-04 11:58:42 +00:00
Improve "prepare-release" and introduce "release" scripts
Has to do with #244.
This commit is contained in:
parent
01c20807c2
commit
05aff199b2
@ -25,3 +25,4 @@ sed -i "s/\"version\": \"$CURRENT_BOWER_JSON_VERSION\"/\"version\": \"$NEW_VERSI
|
|||||||
sh bin/generate-authors
|
sh bin/generate-authors
|
||||||
|
|
||||||
git commit -S -s -a -m "Bump version to $NEW_VERSION"
|
git commit -S -s -a -m "Bump version to $NEW_VERSION"
|
||||||
|
git tag $NEW_VERSION
|
||||||
|
20
bin/release
Executable file
20
bin/release
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
# Usage: ./bin/release x.y.z
|
||||||
|
# x.y.z should be semver (e.g. 1.0.0)
|
||||||
|
|
||||||
|
if [ -z "$1" ];
|
||||||
|
then
|
||||||
|
echo "No version supplied. Please a version argument\n"
|
||||||
|
echo "Usage: $0 VERSION\n"
|
||||||
|
echo "Example: $0 1.0.0"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
NEW_VERSION=$1
|
||||||
|
|
||||||
|
./bin/prepare-release $NEW_VERSION
|
||||||
|
|
||||||
|
git push && \
|
||||||
|
git push --tags && \
|
||||||
|
npm publish
|
Loading…
Reference in New Issue
Block a user