Skip to content

Commit 4dbadab

Browse files
committed
update CI to use pnpm
1 parent 45ec546 commit 4dbadab

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: Test deployment
1+
# Make sure the website can be built for each PR.
2+
3+
name: CI Build for pull requests
24

35
on:
46
pull_request:
@@ -16,9 +18,9 @@ jobs:
1618
- uses: actions/setup-node@v3
1719
with:
1820
node-version: 18
19-
cache: yarn
21+
cache: pnpm
2022

2123
- name: Install dependencies
22-
run: yarn install --frozen-lockfile
24+
run: pnpm install --frozen-lockfile
2325
- name: Test build website
24-
run: yarn build
26+
run: pnpm build

.github/workflows/deploy.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
# Manually trigger build and deploy to GitHub Pages.
2+
13
name: Deploy to GitHub Pages
24

35
on:
4-
push:
5-
branches:
6-
- main
7-
# Review gh actions docs if you want to further define triggers, paths, etc
8-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
6+
workflow_dispatch:
7+
# push:
8+
# branches:
9+
# - main
10+
# # Review gh actions docs if you want to further define triggers, paths, etc
11+
# # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
12+
913

1014
jobs:
1115
deploy:
@@ -16,12 +20,12 @@ jobs:
1620
- uses: actions/setup-node@v3
1721
with:
1822
node-version: 18
19-
cache: yarn
23+
cache: pnpm
2024

2125
- name: Install dependencies
22-
run: yarn install
26+
run: pnpm install
2327
- name: Build website
24-
run: yarn build
28+
run: pnpm build
2529

2630
# Popular action to deploy to GitHub Pages:
2731
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus

0 commit comments

Comments
 (0)