build(ci): 改用 yarn 构建。
Some checks failed
🚀 Build and deploy by ftp / 🎉 Deploy (push) Failing after 3m48s

This commit is contained in:
Ivan Li 2023-09-10 09:15:41 +00:00
parent 3932a2b612
commit 423f908b83

View File

@ -18,43 +18,11 @@ jobs:
with: with:
node-version: 18 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 - name: Install dependencies
run: pnpm install run: yarn install
- run: pnpm build - run: yarn build
- run: npm run export - run: yarn run export
- name: 📂 Sync files - name: 📂 Sync files
uses: https://github.com/SamKirkland/FTP-Deploy-Action@v4.3.4 uses: https://github.com/SamKirkland/FTP-Deploy-Action@v4.3.4