Skip to content

Commit 2234fd0

Browse files
committed
chore: add exit code to nightly to avoid publishing
1 parent f697f0c commit 2234fd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jobs:
3333
# if not, we'll create a new nightly tag
3434
if [[ ${LATEST_NIGHTLY_TAG} == v0.0.0-nightly-${SHORT_SHA} ]]; then
3535
echo "🛑 Latest nightly tag is the same as the latest commit sha, skipping nightly release"
36+
exit 1
3637
else
3738
# v0.0.0-nightly-<short sha>-<date>
3839
NEXT_VERSION=nightly-${SHORT_SHA}
3940
# set output so it can be used in other jobs
4041
echo "NEXT_VERSION=${NEXT_VERSION}" >> $GITHUB_OUTPUT
42+
exit 0
4143
fi
4244
4345
- uses: actions/setup-node@v3

0 commit comments

Comments
 (0)