Fix pnpm cache: use inline export instead of workflow env block
act_runner v0.3.0 doesn't propagate workflow-level or job-level env: blocks to job containers. Use export in run commands instead. First run warms cache, subsequent runs will show reused packages.
This commit is contained in:
@@ -10,10 +10,6 @@ on:
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
env:
|
||||
PNPM_STORE_DIR: /pnpm-store
|
||||
COREPACK_HOME: /pnpm-store/.corepack
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,9 +18,15 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- run: corepack enable && corepack prepare pnpm@latest --activate
|
||||
- name: Setup pnpm
|
||||
run: |
|
||||
export COREPACK_HOME=/pnpm-store/.corepack
|
||||
corepack enable && corepack prepare pnpm@latest --activate
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
export PNPM_STORE_DIR=/pnpm-store
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
- name: Determine changed apps
|
||||
id: changes
|
||||
|
||||
Reference in New Issue
Block a user