Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update pnpm to v9 #5727

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
with:
artifact-name: alteration-integration-test-${{ github.sha }}
branch: ${{github.base_ref}}
pnpm-version: 9

run-logto:
strategy:
Expand All @@ -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 changes: 2 additions & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 **
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/master-codecov-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upload-annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"engines": {
"node": "^20.9.0",
"pnpm": "^8.10.0"
"pnpm": "^9.0.0"
},
"pnpm": {
"overrides": {
Expand Down
Loading
Loading