Skip to content

Commit

Permalink
Automatically publish new versions on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed Jan 14, 2017
1 parent 1f2837f commit bea3bac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
10 changes: 8 additions & 2 deletions scripts/BigRedButton
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bea3bac

Please sign in to comment.