Skip to content

Commit bea3bac

Browse files
committed
Automatically publish new versions on npm
1 parent 1f2837f commit bea3bac

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodeos-barebones",
3-
"version": "1.0.0-RC3.0",
3+
"version": "1.0.0-RC3.1",
44
"scripts": {
55
"BigRedButton": "scripts/BigRedButton",
66
"build": "scripts/build",
@@ -21,6 +21,7 @@
2121
"nodeos-nodejs"
2222
],
2323
"devDependencies": {
24+
"ci-publish": "^1.3.0",
2425
"download-manager": "^0.1.3",
2526
"minimist": "^1.2.0",
2627
"nodeos-cross-toolchain": "^1.0.0-RC3.1",

scripts/BigRedButton

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ eval MACHINE=raspi2 $BUILD || exit 3
1919
# Upload release to GitHub
2020
#
2121

22-
if [ "$GITHUB_TOKEN" ]; then
23-
prebuild --upload-all $GITHUB_TOKEN || exit 10
22+
if [ "$BRANCH_NAME" = "master" ]; then
23+
if [ "$GITHUB_TOKEN" ]; then
24+
prebuild --upload-all $GITHUB_TOKEN || exit 10
25+
fi
26+
27+
if [ "$NPM_TOKEN" ]; then
28+
ci-publish
29+
fi
2430
fi

0 commit comments

Comments
 (0)