Skip to content

Commit dc0bb4f

Browse files
committed
Ship with node 12
Closes #1894 Closes #1892 Closes #1810
1 parent e237589 commit dc0bb4f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

ci/images/centos7/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
FROM centos:7
22

3+
ARG NODE_VERSION=v12.18.3
34
RUN ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')" && \
4-
curl -fsSL "https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
5-
mv /usr/local/node-v14.4.0-linux-$ARCH /usr/local/node-v14.4.0
6-
ENV PATH=/usr/local/node-v14.4.0/bin:$PATH
5+
curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
6+
mv "/usr/local/node-$NODE_VERSION-linux-$ARCH" "/usr/local/node-$NODE_VERSION"
7+
ENV PATH=/usr/local/node-$NODE_VERSION/bin:$PATH
78
RUN npm install -g yarn
89

910
RUN yum groupinstall -y 'Development Tools'

ci/images/debian8/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update
66
RUN apt-get install -y curl gnupg
77

88
# Installs node.
9-
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \
9+
RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && \
1010
apt-get install -y nodejs
1111

1212
# Installs yarn.

ci/steps/release-packages.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ main() {
55
cd "$(dirname "$0")/../.."
66

77
if [[ $OSTYPE == darwin* ]]; then
8-
curl -L https://nodejs.org/dist/v14.4.0/node-v14.4.0-darwin-x64.tar.gz | tar -xz
9-
PATH="$PWD/node-v14.4.0-darwin-x64/bin:$PATH"
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"
1011
fi
1112

1213
# https://github.com/actions/upload-artifact/issues/38

0 commit comments

Comments
 (0)