Skip to content

Commit

Permalink
Configure release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed May 13, 2024
1 parent 960b2db commit 6875db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ jobs:
version: latest
run_install: true

- name: Setup Git
- name: Setup git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Build
run: pnpm build

- name: Publish Package
run: pnpm release --increment prepatch
- name: Publish package
# The `--ci` option generates a URL for creating a release.
run: pnpm release --increment prepatch --ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"git": {
"commitMessage": "Release v${version}"
"commitMessage": "[Github Actions] Release v${version}"
},
"github": {
"release": true,
Expand Down

0 comments on commit 6875db6

Please sign in to comment.