File tree Expand file tree Collapse file tree 4 files changed +47
-3
lines changed
Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Create Release
2+
3+ on :
4+ pull_request :
5+ types : [closed]
6+ branches :
7+ - main
8+
9+ jobs :
10+ build :
11+ if : github.event.pull_request.merged == true
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Get version from PR title or commit
20+ id : get_version
21+ run : |
22+ PR_TITLE="${{ github.event.pull_request.title }}"
23+ if [[ $PR_TITLE =~ v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
24+ VERSION=$(echo $PR_TITLE | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+')
25+ else
26+ # デフォルトバージョン取得ロジック(パッケージJSONなどから)
27+ VERSION=$(grep -o '"version": "[^"]*"' package.json | cut -d'"' -f4)
28+ VERSION="v$VERSION"
29+ fi
30+ echo "version=$VERSION" >> $GITHUB_OUTPUT
31+
32+ - name : Create Release
33+ id : create_release
34+ uses : actions/create-release@v1
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ with :
38+ tag_name : ${{ steps.get_version.outputs.version }}
39+ release_name : ${{ steps.get_version.outputs.version }}
40+ body : |
41+ ${{ github.event.pull_request.body }}
42+ draft : false
43+ prerelease : false
Original file line number Diff line number Diff line change 11{
22 "name" : " harlytics" ,
3- "version" : " 0.3.1 " ,
3+ "version" : " 0.3.2 " ,
44 "private" : true ,
55 "scripts" : {
66 "preinstall" : " npx only-allow pnpm" ,
Original file line number Diff line number Diff line change 8787 class =" md:ml-auto flex flex-wrap items-center space-x-2 text-base justify-center"
8888 >
8989 <!-- <DarkMode {btnClass} /> -->
90- <div id =" buildTimestamp" class =" text-xs" title =" Build: 2025-03-31 17:24:31 UTC" >v0.3.1</div >
90+ <div id =" buildTimestamp" class =" text-xs" title =" Build: 2025-04-06 07:49:28 UTC" >v0.3.2</div >
91+ <div class =" text-xs" ><a href =" https://github.com/sgrastar/HARlytics/releases" target =" _blank" >Release Note</a ></div >
9192 {#if isLive }
9293 <Badge large color =" indigo" class =" ml-4" data-testid =" cloud-edition-badge" >Cloud Edition</Badge >
9394 {/if }
Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 3 ,
33 "name" : " HARlytics" ,
4- "version" : " 0.3.1 " ,
4+ "version" : " 0.3.2 " ,
55 "description" : " HARlytics is a powerful HAR file analyzer that transforms complex HTTP Archive files into actionable insights." ,
66 "icons" : {
77 "16" : " favicon.png" ,
You can’t perform that action at this time.
0 commit comments