File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed
Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 1- name : Test deployment
1+ # Make sure the website can be built for each PR.
2+
3+ name : CI Build for pull requests
24
35on :
46 pull_request :
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
Original file line number Diff line number Diff line change 1+ # Manually trigger build and deploy to GitHub Pages.
2+
13name : Deploy to GitHub Pages
24
35on :
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
1014jobs :
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
You can’t perform that action at this time.
0 commit comments