Skip to content

Commit

Permalink
fix(action): pnpm not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Teages committed Nov 27, 2023
1 parent caa5862 commit ed3b0f4
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,27 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache node_modules
uses: actions/cache@v3
id: cached-node_modules
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
version: 8
run_install: false

- name: Install Dependencies
if: steps.cached-node_modules.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
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
run: pnpm install

- name: Build Nuxt App
run: pnpm build
Expand Down

0 comments on commit ed3b0f4

Please sign in to comment.