From f7f8c2c69deed6820282360059389f0037845656 Mon Sep 17 00:00:00 2001 From: GFrancV <35277540+GFrancV@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:16:08 +0100 Subject: [PATCH] Upgrade to node 22 Fixes #77 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Vilbot-org/bot/issues/77?shareId=XXXX-XXXX-XXXX-XXXX). --- .github/workflows/deployment.yml | 8 ++++---- .github/workflows/pll-request.yml | 6 +++--- .github/workflows/release.yml | 6 +++++- dockerfile | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index ef3f4e8..e6014fb 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - name: Install dependencies run: npm ci - name: Lint @@ -38,7 +38,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - name: Create .env file run: | echo "APP_NAME=vilbot" > .env && @@ -58,7 +58,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - name: Install dependencies run: npm ci - name: Build @@ -101,7 +101,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - uses: actions/download-artifact@v4.1.7 with: name: dist diff --git a/.github/workflows/pll-request.yml b/.github/workflows/pll-request.yml index 4640264..8a428e7 100644 --- a/.github/workflows/pll-request.yml +++ b/.github/workflows/pll-request.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - name: Install dependencies run: npm ci - name: Lint @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - name: Create .env file run: | echo "APP_NAME=vilbot" > .env && @@ -49,7 +49,7 @@ jobs: - uses: actions/setup-node@v3 with: cache: 'npm' - node-version: '20.10' + node-version: '22.10' - name: Install dependencies run: npm ci - name: Build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9584a00..aef3f09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,10 @@ jobs: - name: Get the current release version id: get_version run: echo "RELEASE_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + - uses: actions/setup-node@v3 + with: + cache: 'npm' + node-version: '22.10' - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -24,4 +28,4 @@ jobs: with: context: . push: true - tags: gfrancv/vilbot:latest, gfrancv/vilbot:${{ env.RELEASE_VERSION }} \ No newline at end of file + tags: gfrancv/vilbot:latest, gfrancv/vilbot:${{ env.RELEASE_VERSION }} diff --git a/dockerfile b/dockerfile index edc6b0c..0c3b8d8 100644 --- a/dockerfile +++ b/dockerfile @@ -1,4 +1,4 @@ -ARG NODE_VERSION=20.12 +ARG NODE_VERSION=22.10 FROM node:${NODE_VERSION}-bookworm-slim as base