From cda76e760e4db697775787ff526d4069c2a39dbf Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Mon, 12 Aug 2024 16:22:06 +0100 Subject: [PATCH] =?UTF-8?q?fix(changeset):=20=F0=9F=90=9B=20node=20depende?= =?UTF-8?q?ncies=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../changeset-version-management.yml | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/changeset-version-management.yml b/.github/workflows/changeset-version-management.yml index 11bf884..9876a19 100644 --- a/.github/workflows/changeset-version-management.yml +++ b/.github/workflows/changeset-version-management.yml @@ -37,6 +37,27 @@ jobs: node-version: 20 cache: 'pnpm' + - name: Get pnpm store directory + if: ${{ steps.changeset-status.outputs.skip != 'true' }} + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + if: ${{ steps.changeset-status.outputs.skip != 'true' }} + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + if: ${{ steps.changeset-status.outputs.skip != 'true' }} + run: | + pnpm install \ + --strict-peer-dependencies + - name: Changeset status id: changeset-status shell: bash @@ -61,27 +82,6 @@ jobs: echo "skip=$skip" >> "$GITHUB_OUTPUT" - - name: Get pnpm store directory - if: ${{ steps.changeset-status.outputs.skip != 'true' }} - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - if: ${{ steps.changeset-status.outputs.skip != 'true' }} - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install dependencies - if: ${{ steps.changeset-status.outputs.skip != 'true' }} - run: | - pnpm install \ - --strict-peer-dependencies - - name: Set version if: ${{ steps.changeset-status.outputs.skip != 'true' }} run: |