Skip to content

Commit 78383e8

Browse files
committed
ci: update workflow main.yml to node20 / Node.js 22
Add event trigger for pull_request to master branch
1 parent 1147690 commit 78383e8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: Test and Release (if master)
2-
on: push
2+
on:
3+
push:
4+
pull_request:
5+
branches:
6+
- 'master'
37
jobs:
48
ci:
59
runs-on: ubuntu-latest
610
steps:
711
- name: Checkout
8-
uses: actions/checkout@v3
9-
- uses: actions/setup-node@v3
12+
uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1014
with:
11-
node-version: 16
15+
node-version: 22
1216
- run: npm ci
1317
- run: npm test
1418
# - if: github.ref == 'refs/heads/master'
15-
# run: npm run semantic-release
19+
# run: npm run semantic-release

0 commit comments

Comments
 (0)