File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11FROM centos:7
22
3+ ARG NODE_VERSION=v12.18.3
34RUN 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
78RUN npm install -g yarn
89
910RUN yum groupinstall -y 'Development Tools'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN apt-get update
66RUN 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.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments