From 423f908b83893e1bb51197900dd1c2300803caa9 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 10 Sep 2023 09:15:41 +0000 Subject: [PATCH] =?UTF-8?q?build(ci):=20=E6=94=B9=E7=94=A8=20yarn=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/build-and-deploy-by-ftp.yaml | 38 ++----------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build-and-deploy-by-ftp.yaml b/.github/workflows/build-and-deploy-by-ftp.yaml index 1abc0db..1fbb6c1 100644 --- a/.github/workflows/build-and-deploy-by-ftp.yaml +++ b/.github/workflows/build-and-deploy-by-ftp.yaml @@ -18,43 +18,11 @@ jobs: with: node-version: 18 - - uses: https://github.com/pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 8 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/setup-go@v3 - with: - go-version: '1.20' - - - uses: actions/go-hashfiles@v0.0.1 - id: get-hash - with: - patterns: |- - go.sum - **/pnpm-lock.yaml - - - uses: https://github.com/actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ steps.get-hash.outputs.hash }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - name: Install dependencies - run: pnpm install + run: yarn install - - run: pnpm build - - run: npm run export + - run: yarn build + - run: yarn run export - name: 📂 Sync files uses: https://github.com/SamKirkland/FTP-Deploy-Action@v4.3.4