Skip to content

Commit

Permalink
fix(changeset): 🐛 node dependencies install
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Aug 12, 2024
1 parent d50dcec commit cda76e7
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/changeset-version-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit cda76e7

Please sign in to comment.