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:
parent
4b36610654
commit
c2948b1900
3 changed files with 2 additions and 11 deletions
1
.github/workflows/integration-test.yml
vendored
1
.github/workflows/integration-test.yml
vendored
|
@ -55,7 +55,6 @@ jobs:
|
||||||
- name: Setup Node and pnpm
|
- name: Setup Node and pnpm
|
||||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
|
||||||
run-install: false
|
run-install: false
|
||||||
|
|
||||||
# Setup integration test
|
# Setup integration test
|
||||||
|
|
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -20,8 +20,6 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Node and pnpm
|
- name: Setup Node and pnpm
|
||||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm ci:build
|
run: pnpm ci:build
|
||||||
|
@ -34,8 +32,6 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Node and pnpm
|
- name: Setup Node and pnpm
|
||||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
|
|
||||||
- name: Prepack
|
- name: Prepack
|
||||||
run: pnpm prepack
|
run: pnpm prepack
|
||||||
|
@ -54,8 +50,6 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Node and pnpm
|
- name: Setup Node and pnpm
|
||||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
|
|
||||||
- name: Build for test
|
- name: Build for test
|
||||||
run: pnpm -r build:test
|
run: pnpm -r build:test
|
||||||
|
@ -101,8 +95,6 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Node and pnpm
|
- name: Setup Node and pnpm
|
||||||
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
uses: silverhand-io/actions-node-pnpm-run-steps@v2
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm prepack
|
run: pnpm prepack
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Build stage
|
# Build stage
|
||||||
FROM node:16-alpine as builder
|
FROM node:18-alpine as builder
|
||||||
WORKDIR /etc/logto
|
WORKDIR /etc/logto
|
||||||
ENV CI=true
|
ENV CI=true
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ RUN NODE_ENV=production pnpm i
|
||||||
RUN rm -rf .parcel-cache pnpm-*.yaml
|
RUN rm -rf .parcel-cache pnpm-*.yaml
|
||||||
|
|
||||||
# Seal stage
|
# Seal stage
|
||||||
FROM node:16-alpine as app
|
FROM node:18-alpine as app
|
||||||
WORKDIR /etc/logto
|
WORKDIR /etc/logto
|
||||||
COPY --from=builder /etc/logto .
|
COPY --from=builder /etc/logto .
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|
Loading…
Add table
Reference in a new issue