1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-19 05:55:53 +02:00

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
This commit is contained in:
Théo LUDWIG 2023-07-30 19:03:36 +02:00
parent 6d0dcb50a7
commit 5640f1b434
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
8 changed files with 17 additions and 17 deletions

View File

@ -13,9 +13,9 @@ jobs:
- uses: 'actions/checkout@v3.5.3' - uses: 'actions/checkout@v3.5.3'
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.7.0'
with: with:
node-version: '18.x' node-version: '20.x'
cache: 'npm' cache: 'npm'
- name: 'Install dependencies' - name: 'Install dependencies'

View File

@ -13,9 +13,9 @@ jobs:
- uses: 'actions/checkout@v3.5.3' - uses: 'actions/checkout@v3.5.3'
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.7.0'
with: with:
node-version: '18.x' node-version: '20.x'
cache: 'npm' cache: 'npm'
- name: 'Install dependencies' - name: 'Install dependencies'

View File

@ -21,9 +21,9 @@ jobs:
git_commit_gpgsign: true git_commit_gpgsign: true
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.7.0'
with: with:
node-version: '18.x' node-version: '20.x'
cache: 'npm' cache: 'npm'
- name: 'Install dependencies' - name: 'Install dependencies'

View File

@ -13,9 +13,9 @@ jobs:
- uses: 'actions/checkout@v3.5.3' - uses: 'actions/checkout@v3.5.3'
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.7.0'
with: with:
node-version: '18.x' node-version: '20.x'
cache: 'npm' cache: 'npm'
- name: 'Install dependencies' - name: 'Install dependencies'
@ -30,9 +30,9 @@ jobs:
- uses: 'actions/checkout@v3.5.3' - uses: 'actions/checkout@v3.5.3'
- name: 'Setup Node.js' - name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0' uses: 'actions/setup-node@v3.7.0'
with: with:
node-version: '18.x' node-version: '20.x'
cache: 'npm' cache: 'npm'
- name: 'Install dependencies' - name: 'Install dependencies'

View File

@ -33,8 +33,8 @@ The commit message guidelines adheres to [Conventional Commits](https://www.conv
### Prerequisites ### Prerequisites
- [Node.js](https://nodejs.org/) >= 16.0.0 - [Node.js](https://nodejs.org/) >= 20.0.0
- [npm](https://www.npmjs.com/) >= 8.0.0 - [npm](https://www.npmjs.com/) >= 9.0.0
### Installation ### Installation

View File

@ -9,7 +9,7 @@ COPY --from=builder-dependencies /usr/src/application/node_modules ./node_module
COPY ./ ./ COPY ./ ./
RUN npm run build 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 WORKDIR /usr/src/application
ENV NODE_ENV=production ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1

4
package-lock.json generated
View File

@ -77,8 +77,8 @@
"typescript": "5.1.6" "typescript": "5.1.6"
}, },
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=20.0.0",
"npm": ">=8.0.0" "npm": ">=9.0.0"
} }
}, },
"curriculum-vitae": { "curriculum-vitae": {

View File

@ -7,8 +7,8 @@
"url": "https://github.com/theoludwig/theoludwig" "url": "https://github.com/theoludwig/theoludwig"
}, },
"engines": { "engines": {
"node": ">=16.0.0", "node": ">=20.0.0",
"npm": ">=8.0.0" "npm": ">=9.0.0"
}, },
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",