From 5640f1b434eac6092800c0cedd53104a69a6aa2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sun, 30 Jul 2023 19:03:36 +0200 Subject: [PATCH] build(deps): bump Node.js to 20.0.0 and npm to 9.0.0 BREAKING CHANGE: minimum supported Node.js >= 20.0.0 and npm >= 9.0.0 --- .github/workflows/build.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 8 ++++---- CONTRIBUTING.md | 4 ++-- Dockerfile | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 120298f..dc8520d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,9 +13,9 @@ jobs: - uses: 'actions/checkout@v3.5.3' - name: 'Setup Node.js' - uses: 'actions/setup-node@v3.6.0' + uses: 'actions/setup-node@v3.7.0' with: - node-version: '18.x' + node-version: '20.x' cache: 'npm' - name: 'Install dependencies' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ad5a42b..58e37c3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,9 +13,9 @@ jobs: - uses: 'actions/checkout@v3.5.3' - name: 'Setup Node.js' - uses: 'actions/setup-node@v3.6.0' + uses: 'actions/setup-node@v3.7.0' with: - node-version: '18.x' + node-version: '20.x' cache: 'npm' - name: 'Install dependencies' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1904f68..552224e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,9 +21,9 @@ jobs: git_commit_gpgsign: true - name: 'Setup Node.js' - uses: 'actions/setup-node@v3.6.0' + uses: 'actions/setup-node@v3.7.0' with: - node-version: '18.x' + node-version: '20.x' cache: 'npm' - name: 'Install dependencies' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6159bd9..d86c6a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,9 @@ jobs: - uses: 'actions/checkout@v3.5.3' - name: 'Setup Node.js' - uses: 'actions/setup-node@v3.6.0' + uses: 'actions/setup-node@v3.7.0' with: - node-version: '18.x' + node-version: '20.x' cache: 'npm' - name: 'Install dependencies' @@ -30,9 +30,9 @@ jobs: - uses: 'actions/checkout@v3.5.3' - name: 'Setup Node.js' - uses: 'actions/setup-node@v3.6.0' + uses: 'actions/setup-node@v3.7.0' with: - node-version: '18.x' + node-version: '20.x' cache: 'npm' - name: 'Install dependencies' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2051bf7..de82f34 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,8 +33,8 @@ The commit message guidelines adheres to [Conventional Commits](https://www.conv ### Prerequisites -- [Node.js](https://nodejs.org/) >= 16.0.0 -- [npm](https://www.npmjs.com/) >= 8.0.0 +- [Node.js](https://nodejs.org/) >= 20.0.0 +- [npm](https://www.npmjs.com/) >= 9.0.0 ### Installation diff --git a/Dockerfile b/Dockerfile index 3548d10..d19be0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY --from=builder-dependencies /usr/src/application/node_modules ./node_module COPY ./ ./ RUN npm run build -FROM gcr.io/distroless/nodejs18-debian11:latest AS runner +FROM gcr.io/distroless/nodejs20-debian11:latest AS runner WORKDIR /usr/src/application ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 diff --git a/package-lock.json b/package-lock.json index 37ac57c..c49827b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,8 +77,8 @@ "typescript": "5.1.6" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" + "node": ">=20.0.0", + "npm": ">=9.0.0" } }, "curriculum-vitae": { diff --git a/package.json b/package.json index c4af5f7..534e81a 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "url": "https://github.com/theoludwig/theoludwig" }, "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" + "node": ">=20.0.0", + "npm": ">=9.0.0" }, "scripts": { "dev": "next dev",