Skip to content

Commit b5a9c00

Browse files
committed
lockfile fix and changes
1 parent c1dac2f commit b5a9c00

File tree

4 files changed

+4441
-3663
lines changed

4 files changed

+4441
-3663
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: pnpm/action-setup@v4
1818
name: Install pnpm
1919
with:
20-
version: 8
20+
version: 10
2121
run_install: false
2222

2323
- name: Install Node.js
@@ -40,7 +40,7 @@ jobs:
4040
${{ runner.os }}-pnpm-store-
4141
4242
- name: Install dependencies
43-
run: cd sites/cheerpj && pnpm install
43+
run: cd sites/cheerpj && pnpm install --frozen-lockfile
4444

4545
- name: Build global-navbar
4646
run: cd packages/global-navbar && pnpm run build

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: pnpm/action-setup@v2
2121
name: Install pnpm
2222
with:
23-
version: 8
23+
version: 10
2424
run_install: false
2525

2626
- name: Get pnpm store directory
@@ -37,7 +37,7 @@ jobs:
3737
${{ runner.os }}-pnpm-store-
3838
3939
- name: Install dependencies
40-
run: pnpm install
40+
run: pnpm install --frozen-lockfile
4141

4242
- name: Generate Astro type declarations
4343
run: pnpm -r astro sync
@@ -60,7 +60,7 @@ jobs:
6060
- uses: pnpm/action-setup@v2
6161
name: Install pnpm
6262
with:
63-
version: 8
63+
version: 10
6464
run_install: false
6565

6666
- name: Get pnpm store directory
@@ -77,7 +77,7 @@ jobs:
7777
${{ runner.os }}-pnpm-store-
7878
7979
- name: Install dependencies
80-
run: pnpm install
80+
run: pnpm install --frozen-lockfile
8181

8282
- name: Run Prettier
8383
run: pnpm prettier --check .

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Prevent accidental lockfile modifications
2+
frozen-lockfile=true
3+
4+
# Auto-install peer dependencies
5+
auto-install-peers=true

0 commit comments

Comments
 (0)