From ce7fc2d5fff8dea91ac65316575b9813e1f7b4c7 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Tue, 4 Feb 2025 21:57:09 +0100 Subject: [PATCH] chore(CI): replace corepack enable with official pnpm action --- .github/workflows/cd-app-prod.yaml | 12 ++++++++---- .github/workflows/cd-docker-release.yaml | 18 ++++++++++++------ .github/workflows/cd-preview-build.yaml | 12 ++++++++---- .github/workflows/ci-app-client.yaml | 6 ++++-- .github/workflows/ci-app-server.yaml | 6 ++++-- .github/workflows/ci-cli.yaml | 6 ++++-- .github/workflows/ci-crypto.yaml | 6 ++++-- .github/workflows/ci-deploy-cloudflare.yaml | 6 ++++-- .github/workflows/ci-docs.yaml | 6 ++++-- .github/workflows/ci-lib.yaml | 6 ++++-- .github/workflows/ci-test-e2e.yml | 6 ++++-- 11 files changed, 60 insertions(+), 30 deletions(-) diff --git a/.github/workflows/cd-app-prod.yaml b/.github/workflows/cd-app-prod.yaml index a9ab25d6..79ee3427 100644 --- a/.github/workflows/cd-app-prod.yaml +++ b/.github/workflows/cd-app-prod.yaml @@ -14,11 +14,13 @@ jobs: name: Publish app to production steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies @@ -48,11 +50,13 @@ jobs: name: Publish docs to production steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/cd-docker-release.yaml b/.github/workflows/cd-docker-release.yaml index f657275c..cf25462b 100644 --- a/.github/workflows/cd-docker-release.yaml +++ b/.github/workflows/cd-docker-release.yaml @@ -49,11 +49,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' registry-url: 'https://registry.npmjs.org' @@ -81,11 +83,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' registry-url: 'https://registry.npmjs.org' @@ -112,11 +116,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/cd-preview-build.yaml b/.github/workflows/cd-preview-build.yaml index 9a3c65d1..97fa8f98 100644 --- a/.github/workflows/cd-preview-build.yaml +++ b/.github/workflows/cd-preview-build.yaml @@ -11,11 +11,13 @@ jobs: name: Build app and upload build artifact steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies @@ -37,11 +39,13 @@ jobs: name: Build docs and upload build artifact steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-app-client.yaml b/.github/workflows/ci-app-client.yaml index 913ddd66..4bb40568 100644 --- a/.github/workflows/ci-app-client.yaml +++ b/.github/workflows/ci-app-client.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-app-server.yaml b/.github/workflows/ci-app-server.yaml index 3b97a354..31f3f00c 100644 --- a/.github/workflows/ci-app-server.yaml +++ b/.github/workflows/ci-app-server.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-cli.yaml b/.github/workflows/ci-cli.yaml index ae58d6ec..3e2e4855 100644 --- a/.github/workflows/ci-cli.yaml +++ b/.github/workflows/ci-cli.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-crypto.yaml b/.github/workflows/ci-crypto.yaml index 2add6b63..082344ee 100644 --- a/.github/workflows/ci-crypto.yaml +++ b/.github/workflows/ci-crypto.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-deploy-cloudflare.yaml b/.github/workflows/ci-deploy-cloudflare.yaml index 3f7f566f..21ccff3a 100644 --- a/.github/workflows/ci-deploy-cloudflare.yaml +++ b/.github/workflows/ci-deploy-cloudflare.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml index 179160fa..7c170fc2 100644 --- a/.github/workflows/ci-docs.yaml +++ b/.github/workflows/ci-docs.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-lib.yaml b/.github/workflows/ci-lib.yaml index 58ac09b3..7d11103a 100644 --- a/.github/workflows/ci-lib.yaml +++ b/.github/workflows/ci-lib.yaml @@ -16,11 +16,13 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Install dependencies diff --git a/.github/workflows/ci-test-e2e.yml b/.github/workflows/ci-test-e2e.yml index fa56b81d..70698676 100644 --- a/.github/workflows/ci-test-e2e.yml +++ b/.github/workflows/ci-test-e2e.yml @@ -17,11 +17,13 @@ jobs: steps: - uses: actions/checkout@v4 - - run: corepack enable + + - name: Install pnpm + uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: node-version: 22 - corepack: true cache: 'pnpm' - name: Get Playwright version