forked from maxam2017/productive-box
42 lines (40 loc) 路 1.1 KB
/
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
36
37
38
39
40
41
42
name: build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [16]
steps:
<<<<<<< HEAD
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
=======
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@master
>>>>>>> 3201c2b (馃┕ Issue 74: fix deprecation warning:)
with:
node-version: ${{ matrix.node_version }}
- name: build
run: |
yarn install
yarn build
- name: commit change & push
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git pull
git add .
git commit --allow-empty -m ":robot: build automatically"
git push
- name: repository dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GH_TOKEN }}
event-type: build-event