File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ main() {
13
13
release-gcp \
14
14
release-images \
15
15
dist \
16
- .cache
16
+ .cache \
17
+ node-*
17
18
18
19
pushd lib/vscode
19
20
git clean -xffd
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ set -euo pipefail
4
4
main () {
5
5
cd " $( dirname " $0 " ) /../.."
6
6
7
- if [[ $OSTYPE == darwin * ]] ; then
8
- NODE_VERSION=v12.18.3
9
- curl -L " https://nodejs.org/dist/ $NODE_VERSION /node- $NODE_VERSION -darwin-x64.tar.gz " | tar -xz
10
- PATH= " $PWD /node-$NODE_VERSION -darwin-x64/bin: $PATH "
11
- fi
7
+ NODE_VERSION=v12.18.3
8
+ NODE_OS= " $( uname | tr ' [:upper:] ' ' [:lower:] ' ) "
9
+ NODE_ARCH= " $( uname -m | sed ' s/86_64/64/; s/aarch64/arm64/ ' ) "
10
+ curl -L " https://nodejs.org/dist/ $NODE_VERSION /node-$NODE_VERSION -$NODE_OS - $NODE_ARCH .tar.gz " | tar -xz
11
+ PATH= " $PWD /node- $NODE_VERSION - $NODE_OS - $NODE_ARCH /bin: $PATH "
12
12
13
13
# https://github.com/actions/upload-artifact/issues/38
14
14
tar -xzf release-npm-package/package.tar.gz
You can’t perform that action at this time.
0 commit comments