Skip to content

Commit c34beee

Browse files
committed
build: changed how lockfile is handled
1 parent 36ce21e commit c34beee

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: Setting Up Node.js (${{ matrix.node-version }})
3434
with:
3535
node-version: ${{ matrix.node-version }}
36-
cache: 'pnpm'
36+
cache: ${{ env.USE_LOCKFILE == 'true' && 'pnpm' || '' }}
3737

3838
- run: pnpm install --frozen-lockfile
3939
if: "env.USE_LOCKFILE == 'true'"

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: Setting Up Node.js (${{ matrix.node-version }})
3434
with:
3535
node-version: ${{ matrix.node-version }}
36-
cache: 'pnpm'
36+
cache: ${{ env.USE_LOCKFILE == 'true' && 'pnpm' || '' }}
3737

3838
- run: pnpm install --frozen-lockfile
3939
if: "env.USE_LOCKFILE == 'true'"

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
name: Setting Up Node.js (${{ matrix.node-version }})
3131
with:
3232
node-version: ${{ matrix.node-version }}
33-
cache: 'pnpm'
33+
cache: ${{ env.USE_LOCKFILE == 'true' && 'pnpm' || '' }}
3434

3535
- run: pnpm install --frozen-lockfile
3636
if: "env.USE_LOCKFILE == 'true'"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: Setting Up Node.js (${{ matrix.node-version }})
3434
with:
3535
node-version: ${{ matrix.node-version }}
36-
cache: 'pnpm'
36+
cache: ${{ env.USE_LOCKFILE == 'true' && 'pnpm' || '' }}
3737

3838
- run: pnpm install --frozen-lockfile
3939
if: "env.USE_LOCKFILE == 'true'"
@@ -43,7 +43,7 @@ jobs:
4343
# regionend
4444

4545
# region Steps
46-
46+
4747
- run: pnpm build
4848

4949
- run: pnpm lint

0 commit comments

Comments
 (0)