Skip to content

Commit

Permalink
chore: use release-it to release
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 7, 2024
1 parent 165e5c0 commit 4461ff9
Show file tree
Hide file tree
Showing 4 changed files with 1,234 additions and 47 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,3 @@ jobs:
uses: JS-DevTools/npm-publish@v3
with:
token: ${{secrets.NPM_TOKEN}}
- name: Draft release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
12 changes: 12 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/release-it@17/schema/release-it.json",
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"npm": {
"publish": false
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build-native": "cmake-js compile",
"clean": "rimraf build",
"prepare": "husky",
"commitlint": "commitlint --edit"
"commitlint": "commitlint --edit",
"release": "release-it"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,6 +56,7 @@
"cmake-js": "^7.3.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"release-it": "^17.7.0",
"rimraf": "^6.0.1",
"typescript": "^5.4.5",
"wait-for-expect": "^3.0.2"
Expand Down
Loading

0 comments on commit 4461ff9

Please sign in to comment.