From c2948b1900cfec5b0b37ffd00a3d93f2369759a5 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 3 Jan 2023 15:39:58 +0800 Subject: [PATCH] ci: use node 18 as default (#2786) --- .github/workflows/integration-test.yml | 1 - .github/workflows/main.yml | 8 -------- Dockerfile | 4 ++-- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 792fb20f7..a160169a8 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -55,7 +55,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 with: - node-version: 18 run-install: false # Setup integration test diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46c0ca6a5..eb39e9971 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,8 +20,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 - with: - node-version: 18 - name: Build run: pnpm ci:build @@ -34,8 +32,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 - with: - node-version: 18 - name: Prepack run: pnpm prepack @@ -54,8 +50,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 - with: - node-version: 18 - name: Build for test run: pnpm -r build:test @@ -101,8 +95,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 - with: - node-version: 18 - name: Build run: pnpm prepack diff --git a/Dockerfile b/Dockerfile index bcf2ddd89..b7ca53e09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM node:16-alpine as builder +FROM node:18-alpine as builder WORKDIR /etc/logto ENV CI=true @@ -28,7 +28,7 @@ RUN NODE_ENV=production pnpm i RUN rm -rf .parcel-cache pnpm-*.yaml # Seal stage -FROM node:16-alpine as app +FROM node:18-alpine as app WORKDIR /etc/logto COPY --from=builder /etc/logto . EXPOSE 3001