-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.06 KB
/
vue-scss-ali.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: vite-vue3-scss-ali 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-ali
# 打包构建
- name: 📦 Build
run: pnpm run build:scss-ali
# 此项用于支持gitPage操作,用户上传dist文件夹
# - name: Upload dist
# uses: actions/upload-pages-artifact@v1
# with:
# path: dist