File tree Expand file tree Collapse file tree 9 files changed +31065
-29399
lines changed
Expand file tree Collapse file tree 9 files changed +31065
-29399
lines changed Original file line number Diff line number Diff line change 1+ name : Check Transpiled JavaScript
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ check-dist :
14+ name : Check dist/
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout
19+ id : checkout
20+ uses : actions/checkout@v4
21+
22+ - name : Setup Node.js
23+ id : setup-node
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version-file : package.json
27+ cache : npm
28+
29+ - name : Install Dependencies
30+ id : install
31+ run : npm ci
32+
33+ - name : Build dist/ Directory
34+ id : build
35+ run : npm run bundle
36+
37+ - name : Compare Directories
38+ id : diff
39+ run : |
40+ if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
41+ echo "Detected uncommitted changes after build. See status below:"
42+ git diff --ignore-space-at-eol --text dist/
43+ exit 1
44+ fi
45+
46+ - if : ${{ failure() && steps.diff.outcome == 'failure' }}
47+ name : Upload Artifact
48+ id : upload
49+ uses : actions/upload-artifact@v4
50+ with :
51+ name : dist
52+ path : dist/
Original file line number Diff line number Diff line change 66 units :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v2
10- - run : npm ci
11- - run : npm test
9+ - uses : actions/checkout@v4
10+ - name : Setup Node.js
11+ id : setup-node
12+ uses : actions/setup-node@v4
13+ with :
14+ node-version-file : package.json
15+ cache : npm
16+ - run : npm ci
17+ - run : npm test
18+ - run : npm run lint
19+ - run : npm run typecheck
1220 test :
1321 runs-on : ubuntu-latest
1422 steps :
15- - uses : actions/checkout@v2
16- - uses : ./
17- with :
18- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19- RELEASE_PREFIX : ' Release Note'
23+ - uses : actions/checkout@v4
24+ - uses : ./
25+ with :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27+ RELEASE_PREFIX : " Release Note"
Original file line number Diff line number Diff line change 2121 runs-on : ubuntu-latest
2222 steps :
2323 - uses : actions/checkout@v2
24- - uses : matsuri-tech/generate-release-notes-body-based-on-pull-requests@v1
24+ - uses : matsuri-tech/generate-release-notes-body-based-on-pull-requests@v2
2525 with :
2626 # 必須。
2727 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments