From 72636f44cfd4e1c97beaecfa5ac3a07954d7a4bb Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Sun, 25 Jun 2023 03:19:17 -0400 Subject: [PATCH] build(actions): use pnpm and update gh-pages with conditions --- .github/workflows/update-charwords.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-charwords.yaml b/.github/workflows/update-charwords.yaml index c2df737..6433578 100644 --- a/.github/workflows/update-charwords.yaml +++ b/.github/workflows/update-charwords.yaml @@ -14,20 +14,16 @@ 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 charwords + run: pnpm run charwords - name: Commit changes if any uses: stefanzweifel/git-auto-commit-action@v4 with: