Skip to content

Commit 2671b01

Browse files
committed
feat: add pnpm
1 parent 63a9123 commit 2671b01

File tree

8 files changed

+1441
-979
lines changed

8 files changed

+1441
-979
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,29 @@ jobs:
2828
uses: actions/setup-node@v4
2929
with:
3030
node-version: '20'
31-
cache: 'npm'
3231

33-
- name: Install dependencies
34-
run: npm ci --verbose
32+
- name: Setup pnpm
33+
uses: pnpm/action-setup@v2
34+
with:
35+
version: 8
36+
37+
- name: Get pnpm store directory
38+
id: pnpm-cache
39+
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
3540

36-
- name: Rebuild native modules
37-
run: npm rebuild
41+
- name: Setup pnpm cache
42+
uses: actions/cache@v3
43+
with:
44+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
45+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
46+
restore-keys: |
47+
${{ runner.os }}-pnpm-store-
48+
49+
- name: Install dependencies
50+
run: pnpm install
3851

3952
- name: Build project
40-
run: npm run build
53+
run: pnpm run build
4154

4255
- name: Setup Pages
4356
uses: actions/configure-pages@v4

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v18

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
<head>
55
<meta charset="UTF-8" />
6-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
76
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
87
<title>Vite + TS</title>
98
<script type="text/javascript" src="https://mssl.fwmrm.net/libs/adm/7.8.0/AdManager.js"></script>

0 commit comments

Comments
 (0)