From 21db36a49bafe476cee0669f751f918ad50d6ef0 Mon Sep 17 00:00:00 2001 From: Cupid Valentine Date: Sun, 29 Sep 2024 23:44:46 +0800 Subject: [PATCH] ci: use pnpm instead of yarn --- .github/workflows/pages.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b2e5a34..07f717d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -23,18 +23,18 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20' - cache: yarn + cache: pnpm - id: configurepages uses: actions/configure-pages@v5 - name: Restore cache uses: actions/cache@v4 with: path: .next/cache - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}- - - run: yarn - - run: yarn build + ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- + - run: pnpm + - run: pnpm build env: EXPORT: 1 UNOPTIMIZED: 1