1
-
2
1
name : Node.js - Build & Auto-Commit to CLI data/report/**
3
2
4
3
on :
@@ -17,35 +16,40 @@ jobs:
17
16
if_merged_build :
18
17
if : github.event.pull_request.merged == true
19
18
runs-on : ubuntu-latest
19
+
20
+ permissions :
21
+ # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
22
+ contents : write
23
+
20
24
defaults :
21
25
run :
22
26
working-directory : ./js
23
27
24
28
steps :
25
- - uses : actions/checkout@v3
29
+ - uses : actions/checkout@v3
26
30
27
- - name : Use Node.js ${{ matrix.node-version }}
28
- uses : actions/setup-node@v3
29
- with :
30
- node-version : 20
31
+ - name : Use Node.js ${{ matrix.node-version }}
32
+ uses : actions/setup-node@v3
33
+ with :
34
+ node-version : 20
31
35
32
- - uses : pnpm/action-setup@v2.2.2
33
- with :
34
- version : 8
36
+ - uses : pnpm/action-setup@v2.2.2
37
+ with :
38
+ version : 8
35
39
36
- - name : Install dependencies
37
- working-directory : ./js
38
- run : pnpm install --frozen-lockfile
40
+ - name : Install dependencies
41
+ working-directory : ./js
42
+ run : pnpm install --frozen-lockfile
39
43
40
44
41
- - name : Build Apps
42
- run : pnpm run build
45
+ - name : Build Apps
46
+ run : pnpm run build
43
47
44
- - name : Pull Remote Changes (before AC)
45
- run : git pull origin main
48
+ - name : Pull Remote Changes (before AC)
49
+ run : git pull origin main
46
50
47
- - uses : stefanzweifel/git-auto-commit-action@v4
48
- with :
49
- commit_message : AUTO-COMMIT - build js statics to recce data/
50
- branch : ${{ github.base_ref }}
51
- # Auto-commits to target merge branch
51
+ - uses : stefanzweifel/git-auto-commit-action@v4
52
+ with :
53
+ commit_message : AUTO-COMMIT - build js statics to recce data/
54
+ branch : ${{ github.base_ref }}
55
+ # Auto-commits to target merge branch
0 commit comments