-
Notifications
You must be signed in to change notification settings - Fork 328
35 lines (29 loc) · 945 Bytes
/
build.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
name: Build
on:
push:
branches: [ "user.js" ]
# pull_request:
# branches: [ "user.js" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
# 缓存, 若报缓存错误, 需要手动删除缓存...
# https://docs.github.com/en/rest/actions/cache#list-github-actions-caches-for-a-repository
# https://github.com/actions/setup-node#caching-global-packages-data
# cache: 'npm'
- run: npm ci
- name: Build
run: |
npx rollup --config packages/unblock-area-limit/rollup.config.js
npx rollup --config packages/s3_mobile_style/rollup.config.js
npx rollup --config packages/zhihu_mobile_style/rollup.config.js
- name: Commit
continue-on-error: true
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: build"