From a07317f309f25772925436346b4ebb23b6e69b43 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sun, 6 Feb 2022 12:35:25 +0100 Subject: [PATCH] ci: fix releaserc (#5960) --- .github/workflows/release.yml | 2 ++ .releaserc | 22 ++++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 456d8b3533b..4380e21d3bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: Release on: + pull_request: + branches-ignore: ['*'] push: branches: - next diff --git a/.releaserc b/.releaserc index 30a82da0831..80cb2e6e1cc 100644 --- a/.releaserc +++ b/.releaserc @@ -1,7 +1,15 @@ { + "branches": [ + "main", + "next", + "next-major", + {"name": "beta", "prerelease": true}, + {"name": "alpha", "prerelease": true} + ], "plugins": [ [ - "@semantic-release/commit-analyzer", { + "@semantic-release/commit-analyzer", + { "preset": "angular", "releaseRules": [ {"scope": "no-release", "release": false} @@ -9,7 +17,8 @@ } ], [ - "@semantic-release/release-notes-generator", { + "@semantic-release/release-notes-generator", + { "preset": "angular", "parserOpts": { "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] @@ -21,7 +30,8 @@ } ], [ - "@semantic-release/changelog", { + "@semantic-release/changelog", + { "changelogFile": "CHANGELOG.md" } ], @@ -29,12 +39,8 @@ [ "semantic-release-github-pullrequest", { - "baseRef": "main", "assets": ["CHANGELOG.md"], - "labels": [ - "semantic-release", - "auto-squash" - ] + "labels": ["semantic-release", "auto-squash"] } ] ]