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 }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
PNPM_STORE_DIR: /pnpm-store
|
||||
COREPACK_HOME: /pnpm-store/.corepack
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PNPM_STORE_DIR: /pnpm-store
|
||||
COREPACK_HOME: /pnpm-store/.corepack
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -28,9 +29,6 @@ jobs:
|
||||
build:
|
||||
needs: [lint-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PNPM_STORE_DIR: /pnpm-store
|
||||
COREPACK_HOME: /pnpm-store/.corepack
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user