Skip to content

✨ feat: react template #33

✨ feat: react template

✨ feat: react template #33

Workflow file for this run

name: vite-vue3-tailwind template build test
on:
push:
branches:
- main
workflow_dispatch:
jobs:
# 构建工作
build:
# 运行环境
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
# 指定一下node版本,这里用node20
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
# 此项用户支持使用gitPage操作,如果不使用 不写即可
# - name: Setup Pages
# uses: actions/configure-pages@v4
# 下载依赖
- name: ⏬ Install dependencies
run: pnpm run install:tw
# 打包构建
- name: 📦 Build
run: pnpm run build:tw
# 此项用于支持gitPage操作,用户上传dist文件夹
# - name: Upload dist
# uses: actions/upload-pages-artifact@v1
# with:
# path: dist