Skip to content

Commit 3f96db4

Browse files
committed
Upload new versions automatically to npm
1 parent 3355a9f commit 3f96db4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"devDependencies": {
6666
"bin-man": "^0.2.0",
6767
"bin-pwd": "^0.0.0",
68+
"ci-publish": "^1.3.0",
6869
"davius": "^0.0.1",
6970
"dhcpjs": "^0.5.2",
7071
"fs-extra": "^1.0.0",

scripts/BigRedButton

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

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

0 commit comments

Comments
 (0)