From a2bb5680a606181b8e7675410b994c1ead12db2c Mon Sep 17 00:00:00 2001 From: Devlin Pajaron Date: Wed, 24 Jun 2026 16:59:31 +0800 Subject: [PATCH 1/2] Use pnpm for publish gh pages --- .github/workflows/deploy-github-pages.yml | 35 +++++++++-------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index d8f9aa45..f49233e4 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -9,43 +9,34 @@ permissions: contents: read jobs: - setup: - name: Setup environment - runs-on: ubuntu-latest - steps: - - name: Installing node.js - uses: actions/setup-node@v1 # Used to install node environment - with: - node-version: "10.x" - run-documentation: name: Run documentation runs-on: ubuntu-latest - needs: setup # Need to wait for setup permissions: contents: write steps: - - uses: actions/checkout@v1 # Get last commit pushed + - uses: actions/checkout@v4 - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: pnpm/action-setup@v6 + name: Install pnpm + with: + version: 11.2.2 - - uses: actions/cache@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version-file: .nvmrc + cache: pnpm + cache-dependency-path: pnpm-lock.yaml - name: Install dependencies - run: yarn install + run: pnpm install --frozen-lockfile - name: Run documentation create - run: yarn docusaurus:generate + run: pnpm run docusaurus:generate - name: Run docusaurus build - run: yarn docusaurus:build + run: pnpm run docusaurus:build - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 From e0c2d3866b500cfdff662ea7682394febe375ece Mon Sep 17 00:00:00 2001 From: Devlin Pajaron Date: Wed, 24 Jun 2026 17:00:31 +0800 Subject: [PATCH 2/2] Use pnpm run build in package.json script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ed09c34b..8cfe33e6 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "scripts": { "dev": "pnpm docusaurus:start", "build": "rm -rf dist/; npm run generate-index; tsup", - "prepublishOnly": "yarn build", + "prepublishOnly": "pnpm run build", "test:ci": "jest --no-cache", "test:clear": "jest --clearCache", "docusaurus": "docusaurus",