Skip to content

Commit d5d0aef

Browse files
committed
ci: add pr workflows config.
1 parent b003877 commit d5d0aef

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
contents: write
1717
id-token: write
1818
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-node@v3
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 20
2323
registry-url: 'https://registry.npmjs.org'
2424

2525
# - name: Cache dependencies

.github/workflows/pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI-PR
2+
on:
3+
pull_request:
4+
5+
env:
6+
SKIP_PREFLIGHT_CHECK: true
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Look Changelog
22+
uses: jaywcjlove/changelog-generator@main
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
26+
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
27+
28+
- run: npm install
29+
- run: npm run build
30+
- run: npm run test
31+

0 commit comments

Comments
 (0)