Move cache env vars to workflow level, remove debug step
Move PNPM_STORE_DIR and COREPACK_HOME to workflow-level env which may propagate differently than job-level in act_runner.
This commit is contained in:
@@ -10,12 +10,13 @@ concurrency:
|
|||||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
PNPM_STORE_DIR: /pnpm-store
|
||||||
|
COREPACK_HOME: /pnpm-store/.corepack
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-and-test:
|
lint-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
PNPM_STORE_DIR: /pnpm-store
|
|
||||||
COREPACK_HOME: /pnpm-store/.corepack
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -28,9 +29,6 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
needs: [lint-and-test]
|
needs: [lint-and-test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
PNPM_STORE_DIR: /pnpm-store
|
|
||||||
COREPACK_HOME: /pnpm-store/.corepack
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
env:
|
||||||
|
PNPM_STORE_DIR: /pnpm-store
|
||||||
|
COREPACK_HOME: /pnpm-store/.corepack
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
PNPM_STORE_DIR: /pnpm-store
|
|
||||||
COREPACK_HOME: /pnpm-store/.corepack
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
@@ -10,27 +10,18 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
|
env:
|
||||||
|
PNPM_STORE_DIR: /pnpm-store
|
||||||
|
COREPACK_HOME: /pnpm-store/.corepack
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
PNPM_STORE_DIR: /pnpm-store
|
|
||||||
COREPACK_HOME: /pnpm-store/.corepack
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Debug cache mounts
|
|
||||||
run: |
|
|
||||||
echo "=== /pnpm-store ==="
|
|
||||||
ls -la /pnpm-store 2>/dev/null || echo "NOT MOUNTED"
|
|
||||||
echo "=== PNPM_STORE_DIR=$PNPM_STORE_DIR ==="
|
|
||||||
echo "=== mount points ==="
|
|
||||||
mount | grep pnpm || echo "no pnpm mounts"
|
|
||||||
echo "=== docker volumes ==="
|
|
||||||
docker volume ls 2>/dev/null || echo "no docker access"
|
|
||||||
|
|
||||||
- run: corepack enable && corepack prepare pnpm@latest --activate
|
- run: corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile
|
||||||
|
|||||||
Reference in New Issue
Block a user