File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,6 @@ main() {
53
53
exit 1
54
54
fi
55
55
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
-
62
56
# We use this when setting NPM_VERSION
63
57
if ! is_env_var_set " GITHUB_SHA" ; then
64
58
echo " GITHUB_SHA is not set. Are you running this locally? We rely on values provided by GitHub."
@@ -70,12 +64,6 @@ main() {
70
64
echo " //registry.npmjs.org/:_authToken=${NPM_TOKEN} " > ~ /.npmrc
71
65
fi
72
66
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
-
79
67
# NOTE@jsjoeio - this script assumes we have the artifact downloaded on disk
80
68
# That happens in CI as a step before we run this.
81
69
# https://github.com/actions/upload-artifact/issues/38
You can’t perform that action at this time.
0 commit comments