chore: bump node to 20 in dockerfiles and actions

This commit is contained in:
Nicolas Meienberger 2023-11-29 08:34:51 +01:00 committed by Nicolas Meienberger
parent d11299eeb8
commit 250e78450f
13 changed files with 1980 additions and 19 deletions

View file

@ -97,7 +97,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v2.4.0 - uses: pnpm/action-setup@v2.4.0
name: Install pnpm name: Install pnpm

View file

@ -97,7 +97,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v2.4.0 - uses: pnpm/action-setup@v2.4.0
name: Install pnpm name: Install pnpm

View file

@ -43,7 +43,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v2.4.0 - uses: pnpm/action-setup@v2.4.0
name: Install pnpm name: Install pnpm
@ -106,7 +106,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v2.4.0 - uses: pnpm/action-setup@v2.4.0
name: Install pnpm name: Install pnpm

View file

@ -134,7 +134,7 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- name: Create .env.e2e file with Droplet IP - name: Create .env.e2e file with Droplet IP
run: | run: |

View file

@ -95,7 +95,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v2.4.0 - uses: pnpm/action-setup@v2.4.0
name: Install pnpm name: Install pnpm

View file

@ -1,4 +1,4 @@
ARG NODE_VERSION="18.16" ARG NODE_VERSION="20.10"
ARG ALPINE_VERSION="3.18" ARG ALPINE_VERSION="3.18"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base

View file

@ -1,4 +1,4 @@
ARG NODE_VERSION="18.16" ARG NODE_VERSION="20.10"
ARG ALPINE_VERSION="3.18" ARG ALPINE_VERSION="3.18"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION}

View file

@ -8,7 +8,7 @@ async function bundle() {
entryPoints: ['./src/index.ts'], entryPoints: ['./src/index.ts'],
outfile: './dist/index.js', outfile: './dist/index.js',
platform: 'node', platform: 'node',
target: 'node18', target: 'node20',
bundle: true, bundle: true,
color: true, color: true,
sourcemap: commandArgs.includes('--sourcemap'), sourcemap: commandArgs.includes('--sourcemap'),

View file

@ -8,10 +8,10 @@
"test": "dotenv -e .env.test vitest -- --coverage --watch=false --passWithNoTests", "test": "dotenv -e .env.test vitest -- --coverage --watch=false --passWithNoTests",
"test:watch": "dotenv -e .env.test vitest", "test:watch": "dotenv -e .env.test vitest",
"package": "npm run build && pkg package.json && chmod +x dist/bin/cli-x64 && chmod +x dist/bin/cli-arm64", "package": "npm run build && pkg package.json && chmod +x dist/bin/cli-x64 && chmod +x dist/bin/cli-arm64",
"package:m1": "npm run build && pkg package.json -t node18-darwin-arm64", "package:m1": "npm run build && pkg package.json -t node20-darwin-arm64",
"set-version": "node -e \"require('fs').writeFileSync('assets/VERSION', process.argv[1])\"", "set-version": "node -e \"require('fs').writeFileSync('assets/VERSION', process.argv[1])\"",
"build": "node build.js", "build": "node build.js",
"build:meta": "esbuild ./src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --metafile=meta.json --analyze", "build:meta": "esbuild ./src/index.ts --bundle --platform=node --target=node20 --outfile=dist/index.js --metafile=meta.json --analyze",
"dev": "dotenv -e ../../.env nodemon", "dev": "dotenv -e ../../.env nodemon",
"lint": "eslint . --ext .ts", "lint": "eslint . --ext .ts",
"tsc": "tsc --noEmit", "tsc": "tsc --noEmit",
@ -20,8 +20,8 @@
"pkg": { "pkg": {
"assets": "assets/**/*", "assets": "assets/**/*",
"targets": [ "targets": [
"node18-linux-x64", "node20-linux-x64",
"node18-linux-arm64" "node20-linux-arm64"
], ],
"outputPath": "dist/bin" "outputPath": "dist/bin"
}, },

View file

@ -1,4 +1,4 @@
ARG NODE_VERSION="18.16" ARG NODE_VERSION="20.10"
ARG ALPINE_VERSION="3.18" ARG ALPINE_VERSION="3.18"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base

View file

@ -1,4 +1,4 @@
ARG NODE_VERSION="18.16" ARG NODE_VERSION="20.10"
ARG ALPINE_VERSION="3.18" ARG ALPINE_VERSION="3.18"
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base

View file

@ -8,7 +8,7 @@ async function bundle() {
entryPoints: ['./src/index.ts'], entryPoints: ['./src/index.ts'],
outfile: './dist/index.js', outfile: './dist/index.js',
platform: 'node', platform: 'node',
target: 'node18', target: 'node20',
bundle: true, bundle: true,
color: true, color: true,
sourcemap: commandArgs.includes('--sourcemap'), sourcemap: commandArgs.includes('--sourcemap'),

File diff suppressed because it is too large Load diff