Skip to content

Commit

Permalink
fix(ci): Try to pnpm lock file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jogelin committed Dec 3, 2024
1 parent 8b182da commit 60def03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ permissions:
contents: read

env:
PNPM_VERSION: 9.12.1
NODE_VERSION: 20
NX_POWERPACK_LICENSE: ${{ secrets.NX_POWERPACK_LICENSE }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_PERF_LOGGING: '${{ secrets.ACTIONS_STEP_DEBUG || false }}'
Expand All @@ -26,13 +28,13 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 9
version: ${{ env.PNPM_VERSION }}
run_install: false

# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Cache node_modules
Expand All @@ -41,7 +43,7 @@ jobs:
with:
lookup-only: true
path: '**/node_modules'
key: ${{ runner.os }}-modules-20-${{ hashFiles('pnpm-lock.yaml') }}
key: ${{ runner.os }}-modules-${{ env.NODE_VERSION }}-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install packages
if: steps.cache-modules.outputs.cache-hit != 'true'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@
},
"nx": {
"includedScripts": []
}
},
"packageManager": "pnpm@9.12.1"
}

0 comments on commit 60def03

Please sign in to comment.