Skip to content

Commit

Permalink
feat: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Sep 12, 2023
1 parent 20cb815 commit e98b498
Show file tree
Hide file tree
Showing 3 changed files with 1,648 additions and 4,220 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,30 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true # Checkout private submodules (themes or something else).
- name: Use Node.js 16.x
uses: actions/setup-node@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache NPM dependencies
uses: actions/cache@v2
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build Hexo
run: npm run build
run: pnpm run build
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
Expand Down
Loading

0 comments on commit e98b498

Please sign in to comment.