diff --git a/package.json b/package.json index 367e330..06d7af9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodeos-barebones", - "version": "1.0.0-RC3.0", + "version": "1.0.0-RC3.1", "scripts": { "BigRedButton": "scripts/BigRedButton", "build": "scripts/build", @@ -21,6 +21,7 @@ "nodeos-nodejs" ], "devDependencies": { + "ci-publish": "^1.3.0", "download-manager": "^0.1.3", "minimist": "^1.2.0", "nodeos-cross-toolchain": "^1.0.0-RC3.1", diff --git a/scripts/BigRedButton b/scripts/BigRedButton index 66e55b2..c5daad1 100755 --- a/scripts/BigRedButton +++ b/scripts/BigRedButton @@ -19,6 +19,12 @@ eval MACHINE=raspi2 $BUILD || exit 3 # Upload release to GitHub # -if [ "$GITHUB_TOKEN" ]; then - prebuild --upload-all $GITHUB_TOKEN || exit 10 +if [ "$BRANCH_NAME" = "master" ]; then + if [ "$GITHUB_TOKEN" ]; then + prebuild --upload-all $GITHUB_TOKEN || exit 10 + fi + + if [ "$NPM_TOKEN" ]; then + ci-publish + fi fi