Skip to content

Commit d04cc03

Browse files
committed
Take version from first arg, if given
1 parent 4fb2732 commit d04cc03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
set -e
44

5-
version=`git describe --dirty --tags || echo unknown`
5+
if [ $# -eq 1 ]; then
6+
version=$1
7+
else
8+
version=`git describe --dirty --tags || echo unknown`
9+
fi
610

711
npm run build
812
mkdir -p dist

0 commit comments

Comments
 (0)