openethereum/js/scripts/dryrun-npm.sh
Jaco Greeff d3ee15c6fb Publish @parity/jsonrpc ()
* Add npm/jsonrpc

* Allow ci:build:jsonrpc

* Publish @parity/jsonrpc
2017-01-31 16:52:48 +01:00

37 lines
649 B
Bash
Executable File

#!/bin/bash
set -e
# variables
PACKAGES=( "parity" "etherscan" "shapeshift" "jsonrpc" )
# change into the build directory
BASEDIR=`dirname $0`
cd $BASEDIR/..
# build jsonrpc
echo "*** Building JSONRPC .json"
mkdir -p .npmjs/jsonrpc
npm run ci:build:jsonrpc
# build all packages
echo "*** Building packages for npmjs"
echo "$NPM_TOKEN" >> ~/.npmrc
for PACKAGE in ${PACKAGES[@]}
do
echo "*** Building $PACKAGE"
LIBRARY=$PACKAGE npm run ci:build:npm
DIRECTORY=.npmjs/$PACKAGE
cd $DIRECTORY
echo "*** Publishing $PACKAGE from $DIRECTORY"
echo "npm publish --access public || true"
cd ../..
done
cd ..
# exit with exit code
exit 0