Skip to content

Commit 7df2631

Browse files
committed
update github actions and add build
1 parent 1429915 commit 7df2631

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,39 @@ name: CI
22
on:
33
push:
44
branches:
5-
- "**"
5+
- main
6+
pull_request:
7+
branches:
8+
- main
69

710
jobs:
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"

0 commit comments

Comments
 (0)