Skip to content

Commit

Permalink
fix: use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjie committed Jan 27, 2025
1 parent d0cd432 commit 8952165
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ jobs:
# Examples: 20, 18.19, >=16.20.2, lts/Iron, lts/Hydrogen, *, latest, current, node
# Ref: https://github.com/actions/setup-node#supported-version-syntax
node-version: "20"
- name: Cache NPM dependencies
- name: Install Yarn
run: npm install --global yarn
- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
path: ~/.yarn/cache
key: ${{ runner.OS }}-yarn-cache
restore-keys: |
${{ runner.OS }}-npm-cache
${{ runner.OS }}-yarn-cache
- name: Install Dependencies
run: npm install
run: yarn install
- name: Build
run: npm run build
run: yarn build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 8952165

Please sign in to comment.