Skip to content

Commit b907a1b

Browse files
committed
Publish new versions to npm automatically
1 parent 87b41ca commit b907a1b

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
@@ -33,6 +33,7 @@
3333
"suppose"
3434
],
3535
"devDependencies": {
36+
"ci-publish": "^1.3.0",
3637
"exclfs": "piranna/exclfs",
3738
"jocker": "^0.0.0",
3839
"libfuse": "^2.9.8-3",

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)