Skip to content

Commit

Permalink
Merge pull request #15 from tiavina-mika/develop
Browse files Browse the repository at this point in the history
fix: config
  • Loading branch information
tiavina-mika authored May 1, 2024
2 parents 12a84e2 + 54ae876 commit 2b6a350
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
# instead of using the local cache in .yarn folder, since it's in .gitignore
cache: 'yarn'

- name: Replace branch name in branches array
run: sed -i 's|'current-branch'|'${{ github.ref_name }}'|' .releaserc.yaml

# Use this GitHub Action
- name: Check package version
uses: technote-space/package-version-check-action@v1
Expand Down
23 changes: 21 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
{
"branches": [
"master"
"master",
"current-branch"
],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "type": "docs", "scope": "README", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "ci", "release": "patch" },
{ "type": "test", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "fix", "release": "patch" },
{ "type": "feat", "release": "minor" },
{ "type": "BREAKING CHANGE", "release": "major" }
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
Expand Down

0 comments on commit 2b6a350

Please sign in to comment.