0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

ci: use node 18 as default (#2786)

This commit is contained in:
Gao Sun 2023-01-03 15:39:58 +08:00 committed by GitHub
parent 4b36610654
commit c2948b1900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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