diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c74efe5..14fc03e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: - completed jobs: - build: + on-success: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: @@ -32,7 +32,7 @@ jobs: GH_TOKEN: ${{secrets.GITHUB_TOKEN}} run: yarn semantic-release - failed: + on-failure: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e7d2e1..4320d13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: branches: - main jobs: - build: + tests: runs-on: ubuntu-latest strategy: matrix: diff --git a/release.config.js b/release.config.js index ca39b28..315c61f 100644 --- a/release.config.js +++ b/release.config.js @@ -70,7 +70,12 @@ const config = { 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', }, ], - '@semantic-release/changelog', + [ + '@semantic-release/changelog', + { + changelogFile: 'CHANGELOG.md', + }, + ], ], };