Skip to content

Commit

Permalink
ci(release-it): check for release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
Baek2back committed Jul 1, 2024
1 parent b105134 commit c13f72b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout source code
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20'
node-version: 20
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun ci
- name: Initialize Git user
run:
git config --global user.email "[email protected]"
git config --global user.name "Release workflow"
- run: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
13 changes: 6 additions & 7 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
"git": {
"commitMessage": "chore(release): v${version}",
"tagName": "v${version}",
"push": true
},
"npm": {
"publish": true
"tagName": "v${version}"
},
"plugins": {
"@release-it/conventional-changelog": {
Expand All @@ -19,8 +15,11 @@
"releaseName": "Release ${version}",
"tokenRef": "GITHUB_TOKEN"
},
"npm": {
"publish": true
},
"hooks": {
"before:init": ["bun run test"],
"after:bump": "bun run build"
"before:init": ["git pull"],
"after:bump": "bunx auto-changelog -p"
}
}

0 comments on commit c13f72b

Please sign in to comment.