From 14dd75baa22de68c5c6d320ff23b6846d759eec1 Mon Sep 17 00:00:00 2001 From: Cyril Beslay Date: Fri, 19 Jul 2024 15:24:18 +0200 Subject: [PATCH] chore(node): Update to node 20 --- .github/workflows/ci.yaml | 8 ++++---- .github/workflows/docker-publish.yml | 2 +- .nvmrc | 2 +- Dockerfile | 2 +- README.md | 2 +- package.json | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad3021e..27ec9bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,15 +11,15 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - run: yarn install --frozen-lockfile - run: yarn build - run: yarn lint - run: yarn test --coverage - - name: "Upload to Codecov" - uses: "codecov/codecov-action@v4" + - name: 'Upload to Codecov' + uses: 'codecov/codecov-action@v4' with: directory: coverage env: - CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" + CODECOV_TOKEN: '${{ secrets.CODECOV_TOKEN }}' diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 30b43ff..d3b3077 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - run: yarn install - run: yarn build - name: Upload build artifact diff --git a/.nvmrc b/.nvmrc index 3f430af..9a2a0e2 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v20 diff --git a/Dockerfile b/Dockerfile index cc2dc04..ec32040 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18 +FROM node:20 RUN mkdir -p /home/node/app \ && chown -R node:node /home/node/app diff --git a/README.md b/README.md index 2a99c74..cccf154 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ Slack organisation. Be sure to have all those installed: - [Docker Compose](https://docs.docker.com/compose/install/). -- [Node.js@18](https://nodejs.org/en/). You can use a version manager like +- [Node.js@20](https://nodejs.org/en/). You can use a version manager like [nvm](https://github.com/nvm-sh/nvm). - [Yarn@1](https://classic.yarnpkg.com/lang/en/). diff --git a/package.json b/package.json index 725688c..faf1546 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test": "jest --runInBand --forceExit" }, "engines": { - "node": ">=18" + "node": ">=20" }, "dependencies": { "@slack/web-api": "6.8.1",