diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20def2c..1a91720 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,14 +3,13 @@ name: Release on: push: branches: - - dev - master permissions: contents: write jobs: - goreleaser: + release: runs-on: self-hosted steps: - name: Checkout diff --git a/release.config.cjs b/release.config.cjs index a003daf..c307715 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -2,7 +2,7 @@ * @type {import('semantic-release').GlobalConfig} */ module.exports = { - branches: ['master', {name: 'dev', prerelease: true}], + branches: ['main'], plugins: [ [ '@semantic-release/commit-analyzer', @@ -44,7 +44,7 @@ module.exports = { [ "@semantic-release/exec", { - publishCmd: 'echo "\n\n${nextRelease.notes}" >> CHANGELOG.md' + publishCmd: 'echo -e "${nextRelease.notes}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md' } ], [