Skip to content

Commit ce227eb

Browse files
authored
Fix: Release script issue using stale version (#10)
1 parent 70acc5e commit ce227eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build/publish.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
export NODE_PATH=$NODE_PATH:./node_modules
44
export PATH=/box/www/devtools/bin:$PATH
55

6-
VERSION=$(./build/current_version.sh)
6+
# Temp version
7+
VERSION="XXX"
78

89
install_dependencies() {
910
echo "--------------------------------------------------------"
@@ -130,6 +131,8 @@ publish_to_npm() {
130131
git fetch --prune origin '+refs/tags/*:refs/tags/*' || exit 1
131132
git clean -fdX || exit 1
132133

134+
VERSION=$(./build/current_version.sh)
135+
133136
if [[ $(git status --porcelain 2>/dev/null| grep "^??") != "" ]] ; then
134137
echo "----------------------------------------------------"
135138
echo "Your branch has untracked files!"

0 commit comments

Comments
 (0)