ci: update action (#4046)

* ci: update action
This commit is contained in:
Vben
2024-08-06 22:37:47 +08:00
committed by GitHub
parent 84c8fb0ecc
commit 4bd4f7490b
14 changed files with 99 additions and 104 deletions

View File

@@ -10,10 +10,6 @@ jobs:
name: Deploy Push Ftp
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -33,17 +29,8 @@ jobs:
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-naive/.env.production
cat ./apps/web-naive/.env.production
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Build
run: pnpm run build