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
2 changed files
with
94 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Semantic Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# https://github.com/semantic-release/semantic-release | ||
# https://github.com/cycjimmy/semantic-release-action | ||
# Semantic Release dry run: | ||
# https://github.com/traefik/faency/pull/309 | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
semantic_version: 19 | ||
ci: true | ||
dry_run: false | ||
# You can specify specifying version range for the extra plugins if you prefer. | ||
extra_plugins: | | ||
@semantic-release/changelog@6.0.0 | ||
@semantic-release/git |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
branches: | ||
- "main" | ||
plugins: | ||
- - "@semantic-release/commit-analyzer" | ||
- releaseRules: | ||
- type: revert | ||
release: patch | ||
- type: perf | ||
release: patch | ||
- type: build | ||
scope: deps | ||
release: patch | ||
- type: docs | ||
scope: README.md | ||
release: patch | ||
- scope: no-release | ||
release: false | ||
- - "@semantic-release/release-notes-generator" | ||
- - "@semantic-release/changelog" | ||
- changelogFile: CHANGELOG.md | ||
changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines." | ||
- - "@semantic-release/git" | ||
- message: "chore: Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
assets: | ||
- CHANGELOG.md | ||
- - "@semantic-release/github" | ||
- assets: | ||
- CHANGELOG.md | ||
preset: conventionalcommits | ||
presetConfig: | ||
- types: | ||
- type: feat | ||
section": Features | ||
- type: feature, | ||
ssection": "Features" | ||
- type: fix | ||
section: Bug Fixes | ||
- type: build | ||
section": Updates to the Build System | ||
hidden": false | ||
- type: perf | ||
section": "Performance Improvements" | ||
- type: revert | ||
section: Reverts | ||
- type: docs | ||
section: Documentation | ||
- type: style | ||
section: Styles | ||
- type: chore | ||
section: Miscellaneous Chores | ||
- type: refactor | ||
section: Code Refactoring | ||
- type: test | ||
section: Tests | ||
- type: ci | ||
section: Continuous Integration | ||
|