File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed
Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,39 @@ name: CI
22on :
33 push :
44 branches :
5- - " **"
5+ - main
6+ pull_request :
7+ branches :
8+ - main
69
710jobs :
811 build :
912 runs-on : ubuntu-latest
13+
14+ permissions :
15+ contents : write
16+
1017 steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-node@v3
18+ - uses : actions/checkout@v4
19+
20+ - uses : actions/setup-node@v4
1321 with :
14- node-version : 18.x
22+ node-version : 20.x
1523 cache : " npm"
1624
17- - run : npm install --no-package-lock
18- - run : npm run build
25+ - name : Install dependencies
26+ run : npm install --no-package-lock
27+
28+ - name : Build
29+ run : npm run build
30+
31+ - name : Override gitignore
32+ run : |
33+ echo "node_modules" > .gitignore
34+ echo ".npm" >> .gitignore
35+
36+ - uses : stefanzweifel/git-auto-commit-action@v5
37+ with :
38+ commit_message : " build: ${{ github.sha }}"
39+ branch : build
40+ commit_options : " --no-verify"
You can’t perform that action at this time.
0 commit comments