Skip to content

Commit fd9fd42

Browse files
author
yongyong.fyy
committed
add deploy workflow
1 parent 1f31035 commit fd9fd42

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
with:
2020
node-version: 18
21-
cache: yarn
21+
cache: npm
2222

2323
- name: Install dependencies
24-
run: yarn install --frozen-lockfile
24+
run: npm ci
2525
- name: Build website
26-
run: yarn build
26+
run: npm run build
2727

2828
- name: Upload Build Artifact
2929
uses: actions/upload-pages-artifact@v3

.github/workflows/test-deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
with:
2020
node-version: 18
21-
cache: yarn
21+
cache: npm
2222

2323
- name: Install dependencies
24-
run: yarn install --frozen-lockfile
24+
run: npm ci
2525
- name: Test build website
26-
run: yarn build
26+
run: npm run build

0 commit comments

Comments
 (0)