Skip to content

Commit

Permalink
ci: update project layout to fix releases
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianpaquier committed May 4, 2024
1 parent 467f17f commit c2130f1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ jobs:
- id: semantic_release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 23
extra_plugins: |
@semantic-release/changelog
@semantic-release/commit-analyzer
@semantic-release/exec
@semantic-release/git
@semantic-release/github
@semantic-release/release-notes-generator
conventional-changelog-conventionalcommits
conventional-changelog-conventionalcommits@7
semantic-release-license
dry_run: true
tag_format: v${version}
Expand Down Expand Up @@ -89,14 +90,15 @@ jobs:
- id: semantic-release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 23
extra_plugins: |
@semantic-release/changelog
@semantic-release/commit-analyzer
@semantic-release/exec
@semantic-release/git
@semantic-release/github
@semantic-release/release-notes-generator
conventional-changelog-conventionalcommits
conventional-changelog-conventionalcommits@7
semantic-release-license
dry_run: ${{ inputs.dry_run }}
tag_format: v${version}
Expand Down
37 changes: 26 additions & 11 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@

plugins:
- - "@semantic-release/commit-analyzer"
- releaseRules:
- { breaking: true, release: major }
- { revert: true, release: patch }
- { type: feat, release: minor }
- { type: fix, release: patch }
- { type: revert, release: patch }
- { type: perf, release: patch }
- { type: docs, release: patch }
- { type: chore, release: patch }
- { type: refactor, release: minor }
- preset: conventionalcommits
presetConfig:
types:
- { type: feat, section: Features }
- { type: fix, section: Bug Fixes }
- { type: revert, section: Reverts }
- { type: perf, section: Performance Improvements }
- { type: docs, section: Documentation }
- { type: chore, section: Chores }
- { type: refactor, section: Code Refactoring }

- { type: build, section: Build System, hidden: true }
- { type: ci, section: Continuous Integration, hidden: true }
- { type: style, section: Styles, hidden: true }
- { type: test, section: Tests, hidden: true }
releaseRules:
- { breaking: true, release: major }
- { revert: true, release: patch }
- { type: feat, release: minor }
- { type: fix, release: patch }
- { type: revert, release: patch }
- { type: perf, release: patch }
- { type: docs, release: patch }
- { type: chore, release: patch }
- { type: refactor, release: minor }

- { scope: release, release: false }
- { scope: release, release: false }
parserOpts:
noteKeywords:
- BREAKING CHANGE
Expand Down

0 comments on commit c2130f1

Please sign in to comment.