-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.29 KB
/
push-then-build.yml
File metadata and controls
51 lines (50 loc) · 1.29 KB
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
44
45
46
47
48
49
50
51
name: push then build with react resource
on:
push:
paths:
- 'source/**'
- '.github/**'
branches-ignore:
- release
workflow_dispatch:
branches-ignore:
- release
pull_request:
paths:
- 'source/**'
- '.github/**'
types:
- opened
jobs:
build-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Install Node.js
uses: actions/setup-node@v4.0.0
with:
node-version: lts/iron
# https://nodejs.org/ja/download/releases latest LTS
- name: install
run: |
npm install
working-directory: source/src
- run: npm run build
working-directory: source/src
- run: npm run lint
working-directory: source/src
continue-on-error: true
- run: npm run package
working-directory: source/src
- name: Save
run: |
cd ${{github.workspace}}
cp -f -r ./source/build/* ./website
git config --local user.email "github.action@JavaJava19.github.io"
git config --local user.name "push-then-build.yml"
cd ./website
git add .
git commit -m 'npm run package [skip ci]'
git push
continue-on-error: true
- run: echo done