-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
|
||
jobs: | ||
generate-changelog: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
|
@@ -15,12 +15,22 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Generate Changelog | ||
uses: TriPSs/conventional-changelog-action@v5 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
output-file: CHANGELOG.md | ||
git-push: true | ||
create-release: true | ||
release-count: 1 | ||
release-type: patch | ||
node-version: 20 | ||
|
||
- name: Install standard-version | ||
run: npm install -g standard-version | ||
|
||
- name: Configure Git | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
- name: Bump version and generate changelog (patch) | ||
run: npx standard-version --release-as patch | ||
|
||
- name: Push changes | ||
run: | | ||
git push --follow-tags origin main |