Skip to content

Commit

Permalink
refactor(build): 迁移至 pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Zh40Le1ZOOB authored and epifirumu committed Aug 13, 2024
1 parent 1824563 commit 41c546c
Show file tree
Hide file tree
Showing 4 changed files with 3,150 additions and 7,806 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: current
cache: npm
cache: pnpm

- name: Install node packages
run: npm ci
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
run_install: true

- name: Install mdBook
uses: baptiste0928/cargo-install@v2
Expand Down Expand Up @@ -98,7 +101,7 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
run: |
sed -e "s/BUILD_TIME/$(TZ=Asia/Shanghai date -Isecond)/" -e "s/COMMIT_SHA/${{ github.sha }}/" -i src/about.md
npm run build
pnpm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
Expand All @@ -112,4 +115,4 @@ jobs:
- name: Release eBook
env:
GITHUB_TOKEN: ${{ github.token }}
run: npx semantic-release
run: pnpm exec semantic-release
Loading

0 comments on commit 41c546c

Please sign in to comment.