Skip to content

Commit 8215e1f

Browse files
committed
Only publish on selected builds.
1 parent 0cd9f2e commit 8215e1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 4 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

@@ -178,6 +180,7 @@ jobs:
178180
build-macos-14.11.0:
179181
<<: *common-macos
180182
environment:
183+
PUBLISH: true
181184
NODE_VERSION: "14.11.0"
182185

183186
build-macos-12.6.0:

0 commit comments

Comments
 (0)