Update version of node used to 18.15.0 (#14436)
This commit is contained in:
Родитель
3917e7b771
Коммит
8e00fc7533
|
@ -6,7 +6,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:3
|
|||
ENV NVM_DIR /usr/local/nvm
|
||||
RUN mkdir -p $NVM_DIR
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
|
||||
ENV NODE_VERSION 16.14.2
|
||||
ENV NODE_VERSION 18.15.0
|
||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||
|
||||
|
@ -14,7 +14,7 @@ RUN echo "source $NVM_DIR/nvm.sh && \
|
|||
nvm install $NODE_VERSION && \
|
||||
nvm alias default $NODE_VERSION && \
|
||||
nvm use default && \
|
||||
npm i -g npm@8.15.1" | bash
|
||||
npm i -g npm@9.5.0" | bash
|
||||
|
||||
# Copy environment.yml (if found) to a temp locaition so we update the environment. Also
|
||||
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.169.0/containers/python-3-miniconda/.devcontainer/base.Dockerfile
|
||||
|
||||
FROM node:16.14.2-bullseye-slim
|
||||
FROM node:18.15.0-bullseye-slim
|
||||
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y install apt-utils git gnupg2 curl locales ca-certificates sudo
|
||||
|
@ -26,7 +26,7 @@ RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "$
|
|||
RUN apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
|
||||
|
||||
# # Finally install npm
|
||||
RUN echo "npm i -g npm@8.15.1" | bash
|
||||
RUN echo "npm i -g npm@9.5.0" | bash
|
||||
|
||||
RUN apt install curl -y
|
||||
RUN sh -c "$(curl -fsSL https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
|
||||
|
|
|
@ -27,8 +27,8 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
NODE_VERSION: 16.14.2
|
||||
NPM_VERSION: 8.15.1
|
||||
NODE_VERSION: 18.15.0
|
||||
NPM_VERSION: 9.5.0
|
||||
PYTHON_VERSION: 3.8
|
||||
JULIA_VERSION: 1.5.2
|
||||
MOCHA_REPORTER_JUNIT: true # Use the mocha-multi-reporters and send output to both console (spec) and JUnit (mocha-junit-reporter). Also enables a reporter which exits the process running the tests if it haven't already.
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
v16.14.2
|
||||
v18.15.0
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
### Prerequisites
|
||||
|
||||
1. [Node.js](https://nodejs.org/) 16.14.2
|
||||
2. [npm](https://www.npmjs.com/) 8.15.1
|
||||
1. [Node.js](https://nodejs.org/) 18.15.0
|
||||
2. [npm](https://www.npmjs.com/) 9.5.0
|
||||
3. [Python](https://www.python.org/) 3.6 or later
|
||||
4. Windows, macOS, or Linux
|
||||
5. [Visual Studio Code](https://code.visualstudio.com/)
|
||||
|
|
|
@ -68,8 +68,8 @@ extends:
|
|||
displayName: Install zmq dependencies
|
||||
condition: or(eq(variables.vsceTarget, ''), contains(variables.vsceTarget, 'linux'), contains(variables.vsceTarget, 'alpine'))
|
||||
|
||||
- script: npm i -g npm@8.15.1
|
||||
displayName: npm 8.15.1
|
||||
- script: npm i -g npm@9.5.0
|
||||
displayName: npm 9.5.0
|
||||
|
||||
- script: npm ci --foreground-scripts
|
||||
displayName: npm ci
|
||||
|
|
|
@ -63,8 +63,8 @@ extends:
|
|||
displayName: Install zmq dependencies
|
||||
condition: or(eq(variables.vsceTarget, ''), contains(variables.vsceTarget, 'linux'), contains(variables.vsceTarget, 'alpine'))
|
||||
|
||||
- script: npm i -g npm@8.15.1
|
||||
displayName: npm 8.15.1
|
||||
- script: npm i -g npm@9.5.0
|
||||
displayName: npm 9.5.0
|
||||
|
||||
- script: npm ci --foreground-scripts
|
||||
displayName: npm ci
|
||||
|
|
Загрузка…
Ссылка в новой задаче