Skip to content

Commit f090ebe

Browse files
committed
semmantic commit対応化
1 parent 582ec21 commit f090ebe

File tree

3 files changed

+1082
-24
lines changed

3 files changed

+1082
-24
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1-
name: Publish to Bun
1+
name: Release and Publish
22

33
on:
44
push:
5-
tags:
6-
- 'v*' # Trigger on tags like v1.0.0, v1.2.3, etc.
5+
branches:
6+
- main
77

88
jobs:
9-
publish:
9+
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
issues: write
14+
pull-requests: write
1115

1216
steps:
1317
- name: Checkout code
1418
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0 # Required for semantic-release to analyze commit history
1521

1622
- name: Setup Bun
1723
uses: oven-sh/setup-bun@v2
1824

19-
- name: Publish to Bun Registry
20-
run: bun publish
25+
- name: Install dependencies
26+
run: bun install
27+
28+
- name: Run tests
29+
run: bun test
30+
31+
- name: Release
32+
run: ~/.bun/bin/bunx semantic-release
2133
env:
22-
BUN_API_TOKEN: ${{ secrets.BUN_API_TOKEN }}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
BUN_API_TOKEN: ${{ secrets.BUN_API_TOKEN }}

0 commit comments

Comments
 (0)