From e7429c065cc3103a7f90c1f867a6d3ea93452731 Mon Sep 17 00:00:00 2001 From: Giovanni Bassi Date: Thu, 23 May 2024 23:25:22 -0300 Subject: [PATCH] Use node 22 where possible in build --- .devcontainer/Dockerfile | 4 ++-- .github/workflows/build.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 1d1fe75..9fc8694 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -14,6 +14,6 @@ RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME USER $USERNAME RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash -RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm i --no-progress 18.18.0 && nvm i --no-progress 20.7.0 && nvm i --no-progress 21.1.0 && nvm i --no-progress 22.0.0" ] -RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm alias default 21" ] +RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm i --no-progress 18.18.0 && nvm i --no-progress 20.7.0 && nvm i --no-progress 21.1.0 && nvm i --no-progress 22.2.0" ] +RUN [ "/bin/bash", "-c", "source $HOME/.nvm/nvm.sh && nvm alias default 22" ] ENV DEBIAN_FRONTEND=dialog diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 053bc04..e4c5c97 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -197,7 +197,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 21.x + node-version: 22.x registry-url: "https://registry.npmjs.org" cache: npm - run: | @@ -221,7 +221,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 21.x + node-version: 22.x registry-url: "https://registry.npmjs.org" cache: npm - run: | @@ -246,7 +246,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 21.x + node-version: 22.x registry-url: "https://registry.npmjs.org" cache: npm - run: |