Skip to content

Commit 334cd9a

Browse files
committed
Only publish on selected builds.
1 parent 0cd9f2e commit 334cd9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ aliases:
88
fi
99
COMMIT_MESSAGE=`git log --format=%s -n 1 $CIRCLE_SHA1`
1010
./node_modules/.bin/node-pre-gyp rebuild package testpackage $GYP_ARGS
11-
if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then
11+
if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]] && [[ "$PUBLISH" == "true" ]]; then
1212
./node_modules/.bin/node-pre-gyp package testpackage $GYP_ARGS
1313
./node_modules/.bin/node-pre-gyp publish $GYP_ARGS
1414
else
@@ -125,6 +125,8 @@ version: 2
125125
jobs:
126126
build-14.11.0:
127127
<<: *common-build
128+
environment:
129+
PUBLISH: true
128130
docker:
129131
- image: circleci/node:14.11.0
130132

@@ -177,6 +179,8 @@ jobs:
177179

178180
build-macos-14.11.0:
179181
<<: *common-macos
182+
environment:
183+
PUBLISH: true
180184
environment:
181185
NODE_VERSION: "14.11.0"
182186

0 commit comments

Comments
 (0)