Skip to content

chore: 引入bundle分析 拆包 #17

chore: 引入bundle分析 拆包

chore: 引入bundle分析 拆包 #17

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
BuildProject:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18'
- name: Install pnpm
uses: pnpm/[email protected]
id: pnpm-install
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Deploy Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: ./dist
branch: gh-pages
ssh-key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}