From 44e9ee4cfb4434c46108638dbb26082f3cd4f27d Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Sun, 25 Jun 2023 03:23:54 -0400 Subject: [PATCH] build(actions): update gh-pages with pnpm --- .github/workflows/gh-pages.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 4263875..83b2fff 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -14,22 +14,18 @@ jobs: permissions: contents: write - strategy: - matrix: - node-version: [20.x] - steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use PNPM + uses: pnpm/action-setup@v2 with: - node-version: ${{ matrix.node-version }} + version: latest - name: Install dependencies - run: npm i + run: pnpm i - name: Build all - run: npm run build-all + run: pnpm run build-all - name: Build directory - run: npm run vite:directory:build + run: pnpm run vite:directory:build - name: Deploy uses: s0/git-publish-subdir-action@develop env: