Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouria-Hjt committed Jun 27, 2024
1 parent 0deb05c commit 573b19c
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,14 @@ runs:
with:
version: 8

- name: Get pnpm store directory
shell: bash
id: pnpm-cache
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache dependencies ⚡
id: cache_dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install dependencies 🔧
shell: bash
run: |
if [ -f pnpm-lock.yaml ]; then
pnpm install --frozen-lockfile
else
pnpm install
fi
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile

0 comments on commit 573b19c

Please sign in to comment.