Skip to content

Commit 8450ba0

Browse files
authored
Merge pull request #235 from matsuri-tech/main
Release Note: v2.0.3
2 parents a73cea1 + abcca9c commit 8450ba0

File tree

9 files changed

+31065
-29399
lines changed

9 files changed

+31065
-29399
lines changed

.github/workflows/check-dist.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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/

.github/workflows/test.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ jobs:
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"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)