chore: bump node to 20 in dockerfiles and actions
This commit is contained in:
parent
d11299eeb8
commit
250e78450f
13 changed files with 1980 additions and 19 deletions
2
.github/workflows/alpha-release.yml
vendored
2
.github/workflows/alpha-release.yml
vendored
|
@ -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
|
||||||
|
|
2
.github/workflows/beta-release.yml
vendored
2
.github/workflows/beta-release.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
@ -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: |
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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'),
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'),
|
||||||
|
|
1967
pnpm-lock.yaml
1967
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue