diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 6cb406a..99bfcdc 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -2,7 +2,7 @@ name: Pull Requests on: pull_request: - branches: [master, develop] + branches: [master, pre, develop] jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4fa4df..ca5384e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Test & Build on: push: - branches: [master, develop, pre, feat/*, fix/*] + branches: [master, pre, develop] permissions: contents: read # for checkout jobs: diff --git a/release.config.js b/release.config.js index 9e0a973..6557dd0 100644 --- a/release.config.js +++ b/release.config.js @@ -1,23 +1,8 @@ -const releaseRules = [ - { type: "feat", section: "Features", release: "minor" }, - { type: "revert", section: "Features", release: "minor" }, - { type: "fix", section: "Bug Fixes", release: "patch" }, - { type: "chore", section: "Misc", release: "patch" }, - { type: "refactor", section: "Misc", release: "patch" }, - { type: "perf", section: "Misc", release: "patch" }, - { type: "build", section: "Build", release: "patch" }, - { type: "docs", section: "Build", release: false }, - { type: "test", section: "Tests", release: "patch" }, -] - /** @type {import('semantic-release').Options} */ module.exports = { - branches: ["+([0-9])?(.{+([0-9]),x}).x", "master", "next", "next-major", { name: "pre", prerelease: true }], + branches: ["master", { name: "pre", prerelease: true }], analyzeCommits: { path: "semantic-release-conventional-commits", - majorTypes: releaseRules.filter((x) => x.release === "major").map((x) => x.type), - minorTypes: releaseRules.filter((x) => x.release === "minor").map((x) => x.type), - patchTypes: releaseRules.filter((x) => x.release === "patch").map((x) => x.type), }, plugins: [ [ @@ -27,7 +12,6 @@ module.exports = { parserOpts: { noteKeywords: ["breaking:", "breaking-fix:", "breaking-feat:"], }, - releaseRules: releaseRules, }, ], [ @@ -36,7 +20,6 @@ module.exports = { preset: "conventionalcommits", parserOpts: { noteKeywords: ["breaking", "major"], - types: releaseRules, }, }, ],