aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-15 02:33:10 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-15 02:33:10 +0800
commitbb556e1193d8cbe657e47243c18e6913ac26e688 (patch)
tree3b06e5a85be005efe300b26e3f938dab10c980aa /scripts
parent2d9109ba453d49547778c39a506b0ed492305c16 (diff)
downloaddexon-solidity-bb556e1193d8cbe657e47243c18e6913ac26e688.tar.gz
dexon-solidity-bb556e1193d8cbe657e47243c18e6913ac26e688.tar.zst
dexon-solidity-bb556e1193d8cbe657e47243c18e6913ac26e688.zip
Change solc-bin publish script to support npm
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-emscripten/publish_binary.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh
index 236d976a..8fb0a2bc 100755
--- a/scripts/travis-emscripten/publish_binary.sh
+++ b/scripts/travis-emscripten/publish_binary.sh
@@ -81,9 +81,16 @@ else
fi
+# Prepare for update script
+npm install
+
# This file is assumed to be the product of the build_emscripten.sh script.
cp ../soljson.js ./bin/"soljson-$FULLVERSION.js"
-node ./update
+
+# Run update script
+npm run update
+
+# Publish updates
git add ./bin/"soljson-$FULLVERSION.js"
git commit -a -m "Added compiler version $FULLVERSION"
git push origin gh-pages