From 0e003345fc38a8d9c22596c0c7820093a783c9ea Mon Sep 17 00:00:00 2001 From: chimpdev Date: Wed, 23 Oct 2024 03:17:33 +0300 Subject: [PATCH] fix: add pnpm setup step to multiple workflow files --- .github/workflows/client-validate-locale-files.yml | 5 +++++ .github/workflows/eslint-client.yml | 7 ++++++- .github/workflows/eslint-docs.yml | 7 ++++++- .github/workflows/eslint-server.yml | 7 ++++++- .github/workflows/release-please.yml | 12 ++++++++++++ .github/workflows/server-validate-locale-files.yml | 5 +++++ 6 files changed, 40 insertions(+), 3 deletions(-) diff --git a/.github/workflows/client-validate-locale-files.yml b/.github/workflows/client-validate-locale-files.yml index ec272b05..264d4d8a 100644 --- a/.github/workflows/client-validate-locale-files.yml +++ b/.github/workflows/client-validate-locale-files.yml @@ -18,6 +18,11 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: ./.github/actions/setup-node-env with: node-version: 20 diff --git a/.github/workflows/eslint-client.yml b/.github/workflows/eslint-client.yml index 8954518c..2dedab25 100644 --- a/.github/workflows/eslint-client.yml +++ b/.github/workflows/eslint-client.yml @@ -17,7 +17,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: '18' - + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: ./.github/actions/setup-node-env with: node-version: 18 diff --git a/.github/workflows/eslint-docs.yml b/.github/workflows/eslint-docs.yml index c3221cd4..657a26fa 100644 --- a/.github/workflows/eslint-docs.yml +++ b/.github/workflows/eslint-docs.yml @@ -17,7 +17,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: '18' - + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: ./.github/actions/setup-node-env with: node-version: 18 diff --git a/.github/workflows/eslint-server.yml b/.github/workflows/eslint-server.yml index fb1845f0..9851b271 100644 --- a/.github/workflows/eslint-server.yml +++ b/.github/workflows/eslint-server.yml @@ -12,7 +12,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: ./.github/actions/setup-node-env with: node-version: 18 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4a6ca818..26dae220 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -34,6 +34,10 @@ jobs: needs: release-please steps: - uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: ./.github/actions/setup-node-env with: node-version: 18 @@ -52,6 +56,10 @@ jobs: needs: release-please steps: - uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: ./.github/actions/setup-node-env with: node-version: 18 @@ -70,6 +78,10 @@ jobs: needs: release-please steps: - uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - uses: ./.github/actions/setup-node-env with: node-version: 18 diff --git a/.github/workflows/server-validate-locale-files.yml b/.github/workflows/server-validate-locale-files.yml index f6ddb20b..1852485b 100644 --- a/.github/workflows/server-validate-locale-files.yml +++ b/.github/workflows/server-validate-locale-files.yml @@ -18,6 +18,11 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: ./.github/actions/setup-node-env with: node-version: 20