Skip to content

Commit 88de49f

Browse files
committed
refactor: clean up release-github-assets script
1 parent b83a2bb commit 88de49f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

ci/build/release-github-assets.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ set -euo pipefail
99
main() {
1010
cd "$(dirname "$0")/../.."
1111
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
1221

1322
download_artifact release-packages ./release-packages
1423
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})

ci/steps/publish-npm.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ main() {
1313
exit 1
1414
fi
1515

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-
2416
## Publishing Information
2517
# All the variables below are used to determine how we should publish
2618
# the npm package. We also use this information for bumping the version.

0 commit comments

Comments
 (0)