0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(deps): update pnpm to v9 (#5727)

* chore(deps): update pnpm to v9

* ci: fix alteration

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
This commit is contained in:
renovate[bot] 2024-05-09 08:42:31 +00:00 committed by GitHub
parent 7244dadf69
commit ae5284b1d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 11119 additions and 8907 deletions

View file

@ -55,6 +55,7 @@ jobs:
with:
artifact-name: alteration-integration-test-${{ github.sha }}
branch: ${{github.base_ref}}
pnpm-version: 9
run-logto:
strategy:
@ -68,9 +69,10 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
steps:
- uses: logto-io/actions-run-logto-integration-tests@v2
- uses: logto-io/actions-run-logto-integration-tests@v3
with:
branch: ${{github.base_ref}}
logto_artifact: alteration-integration-test-${{ github.sha }}
test_target: ${{ matrix.target }}
db_alteration_target: ${{github.head_ref}}
logto-artifact: alteration-integration-test-${{ github.sha }}
test-target: ${{ matrix.target }}
db-alteration-target: ${{github.head_ref}}
pnpm-version: 9

View file

@ -19,6 +19,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6

View file

@ -22,6 +22,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Commitlint
# Credit to https://stackoverflow.com/a/67365254/12514940

View file

@ -21,6 +21,7 @@ jobs:
- uses: logto-io/actions-package-logto-artifact@v2
with:
artifact-name: integration-test-${{ github.sha }}
pnpm-version: 9
run-logto:
strategy:
@ -34,7 +35,8 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres
steps:
- uses: logto-io/actions-run-logto-integration-tests@v2
- uses: logto-io/actions-run-logto-integration-tests@v3
with:
logto_artifact: integration-test-${{ github.sha }}
test_target: ${{ matrix.target }}
logto-artifact: integration-test-${{ github.sha }}
test-target: ${{ matrix.target }}
pnpm-version: 9

View file

@ -20,6 +20,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Build
run: pnpm ci:build
@ -32,6 +34,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Prepack
run: pnpm prepack
@ -54,6 +58,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Build for test
run: pnpm -r build:test
@ -120,6 +126,7 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
run-install: false
# ** Prepack packages **
@ -129,7 +136,11 @@ jobs:
- name: Prepack alteration
working-directory: ./alteration
run: pnpm i && pnpm prepack
run: |
# Remove corepack commands once a new Logto release is out
corepack enable pnpm
corepack use pnpm@8
pnpm i && pnpm prepack
# ** End **
- name: Setup Postgres

View file

@ -15,6 +15,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Build for test
run: pnpm -r build:test

View file

@ -130,6 +130,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
@ -160,6 +162,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Build
run: pnpm -r build

View file

@ -23,6 +23,8 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
- name: Prepack
run: pnpm prepack

View file

@ -7,7 +7,7 @@ ENV CI=true
ENV PUPPETEER_SKIP_DOWNLOAD=true
### Install toolchain ###
RUN npm add --location=global pnpm@^8.0.0
RUN npm add --location=global pnpm@^9.0.0
# https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine
RUN apk add --no-cache python3 make g++ rsync

View file

@ -35,7 +35,7 @@
},
"engines": {
"node": "^20.9.0",
"pnpm": "^8.10.0"
"pnpm": "^9.0.0"
},
"pnpm": {
"overrides": {

File diff suppressed because it is too large Load diff