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:
parent
7244dadf69
commit
ae5284b1d3
11 changed files with 11119 additions and 8907 deletions
|
@ -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
|
||||
|
|
2
.github/workflows/changesets.yml
vendored
2
.github/workflows/changesets.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/commitlint.yml
vendored
2
.github/workflows/commitlint.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/integration-test.yml
vendored
8
.github/workflows/integration-test.yml
vendored
|
@ -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
|
||||
|
|
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/master-codecov-report.yml
vendored
2
.github/workflows/master-codecov-report.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/upload-annotations.yml
vendored
2
.github/workflows/upload-annotations.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
},
|
||||
"engines": {
|
||||
"node": "^20.9.0",
|
||||
"pnpm": "^8.10.0"
|
||||
"pnpm": "^9.0.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
|
|
19979
pnpm-lock.yaml
19979
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue