🐛 fix: eslint bug #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: vite-vue3-scss 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:scss | |
# 打包构建 | |
- name: 📦 Build | |
run: pnpm run build:scss | |
# 此项用于支持gitPage操作,用户上传dist文件夹 | |
# - name: Upload dist | |
# uses: actions/upload-pages-artifact@v1 | |
# with: | |
# path: dist |