Skip to content

Commit 21bc065

Browse files
committed
fixup: remove unused env var
1 parent eed8d58 commit 21bc065

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ci/steps/publish-npm.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ main() {
5353
exit 1
5454
fi
5555

56-
# We use this to grab the branch name
57-
if ! is_env_var_set "GITHUB_HEAD_REF"; then
58-
echo "GITHUB_HEAD_REF is not set. Are you running this locally? We rely on values provided by GitHub."
59-
exit 1
60-
fi
61-
6256
# We use this when setting NPM_VERSION
6357
if ! is_env_var_set "GITHUB_SHA"; then
6458
echo "GITHUB_SHA is not set. Are you running this locally? We rely on values provided by GitHub."
@@ -70,12 +64,6 @@ main() {
7064
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
7165
fi
7266

73-
# Note: if this runs on a push to main or a release workflow
74-
# There is no BRANCH so branch will be empty which is why
75-
# we set a default.
76-
# Source:https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
77-
BRANCH="${GITHUB_HEAD_REF-main}"
78-
7967
# NOTE@jsjoeio - this script assumes we have the artifact downloaded on disk
8068
# That happens in CI as a step before we run this.
8169
# https://github.com/actions/upload-artifact/issues/38

0 commit comments

Comments
 (0)