From 15648f7810ccf99e2c73f32647e1e7f622c6950a Mon Sep 17 00:00:00 2001 From: Branko Conjic Date: Wed, 20 Dec 2023 05:21:12 +0100 Subject: [PATCH] fix(ci): pnpm before the setup-node action --- .github/workflows/code_check.yml | 12 ++++++------ .github/workflows/release.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index 932653f..b3c8eec 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -14,12 +14,6 @@ jobs: with: fetch-depth: 0 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" - cache: "pnpm" - - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install @@ -32,6 +26,12 @@ jobs: run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + - uses: actions/cache@v3 name: Setup pnpm cache with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49d75c5..248b6ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,6 @@ jobs: with: fetch-depth: 0 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" - cache: "pnpm" - - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install @@ -29,6 +23,12 @@ jobs: version: 8 run_install: false + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + - name: Get pnpm store directory shell: bash run: |