Skip to content

Commit a478db0

Browse files
committed
chore: 更新github pages的自动部署配置
1 parent e2323a8 commit a478db0

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: 'pages'
14+
cancel-in-progress: true
15+
716
jobs:
817
build-and-deploy:
918
runs-on: ubuntu-latest
1019
steps:
1120
- name: Checkout
1221
uses: actions/checkout@v4
1322

23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
cache: 'pnpm'
30+
1431
- name: Install and Build
1532
run: |
16-
pnpm install
33+
pnpm install --frozen-lockfile
1734
pnpm build
1835
1936
- name: Deploy

0 commit comments

Comments
 (0)