Fix cache: combine export + pnpm install in single step
This commit is contained in:
@@ -16,18 +16,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup and install
|
||||||
run: |
|
run: |
|
||||||
export COREPACK_HOME=/pnpm-store/.corepack
|
export COREPACK_HOME=/pnpm-store/.corepack
|
||||||
corepack enable && corepack prepare pnpm@latest --activate
|
corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
export PNPM_STORE_DIR=/pnpm-store
|
export PNPM_STORE_DIR=/pnpm-store
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Lint and test
|
- run: pnpm turbo lint test
|
||||||
run: pnpm turbo lint test
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [lint-and-test]
|
needs: [lint-and-test]
|
||||||
@@ -37,13 +33,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup and install
|
||||||
run: |
|
run: |
|
||||||
export COREPACK_HOME=/pnpm-store/.corepack
|
export COREPACK_HOME=/pnpm-store/.corepack
|
||||||
corepack enable && corepack prepare pnpm@latest --activate
|
corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
export PNPM_STORE_DIR=/pnpm-store
|
export PNPM_STORE_DIR=/pnpm-store
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
|||||||
@@ -10,13 +10,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup and install
|
||||||
run: |
|
run: |
|
||||||
export COREPACK_HOME=/pnpm-store/.corepack
|
export COREPACK_HOME=/pnpm-store/.corepack
|
||||||
corepack enable && corepack prepare pnpm@latest --activate
|
corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
export PNPM_STORE_DIR=/pnpm-store
|
export PNPM_STORE_DIR=/pnpm-store
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup and install
|
||||||
run: |
|
run: |
|
||||||
export COREPACK_HOME=/pnpm-store/.corepack
|
export COREPACK_HOME=/pnpm-store/.corepack
|
||||||
corepack enable && corepack prepare pnpm@latest --activate
|
corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
export PNPM_STORE_DIR=/pnpm-store
|
export PNPM_STORE_DIR=/pnpm-store
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user