Skip to content

Commit

Permalink
feat: setup semantic-release git plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-er committed Dec 28, 2023
1 parent ff24d09 commit e94124f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
run: pnpm build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"@japa/spec-reporter": "^1.3.3",
"@poppinss/dev-utils": "^2.0.3",
"@poppinss/utils": "^5.0.0",
"@semantic-release/git": "^10.0.1",
"@types/luxon": "^3.3.2",
"@types/node": "^20.10.5",
"@types/node-cron": "^3.0.11",
Expand Down
32 changes: 32 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
module.exports = {
branches: ['main'],
plugins: [
'@semantic-release/git',
{
assets: ['package.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
}

0 comments on commit e94124f

Please sign in to comment.