File tree 2 files changed +9
-8
lines changed 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ set -euo pipefail
9
9
main () {
10
10
cd " $( dirname " $0 " ) /../.."
11
11
source ./ci/lib.sh
12
+ source ./ci/steps/steps-lib.sh
13
+
14
+ # NOTE@jsjoeio - only needed if we use the download_artifact
15
+ # because we talk to the GitHub API.
16
+ # Needed to use GitHub API
17
+ if ! is_env_var_set " GITHUB_TOKEN" ; then
18
+ echo " GITHUB_TOKEN is not set. Cannot download npm release-packages without GitHub credentials."
19
+ exit 1
20
+ fi
12
21
13
22
download_artifact release-packages ./release-packages
14
23
local assets=(./release-packages/code-server* " $VERSION " * {.tar.gz,.deb,.rpm})
Original file line number Diff line number Diff line change @@ -13,14 +13,6 @@ main() {
13
13
exit 1
14
14
fi
15
15
16
- # NOTE@jsjoeio - only needed if we use the download_artifact
17
- # because we talk to the GitHub API.
18
- # Needed to use GitHub API
19
- if ! is_env_var_set " GITHUB_TOKEN" ; then
20
- echo " GITHUB_TOKEN is not set. Cannot download npm release artifact without GitHub credentials."
21
- exit 1
22
- fi
23
-
24
16
# # Publishing Information
25
17
# All the variables below are used to determine how we should publish
26
18
# the npm package. We also use this information for bumping the version.
You can’t perform that action at this time.
0 commit comments