diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index fa99007..28b9987 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -2,7 +2,7 @@ name: check-pr on: pull_request: branches: - - main + - v4 jobs: call-build-lint-test-workflow: uses: ./.github/workflows/build-lint-test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2648b8a..7eacd1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: release on: push: branches: - - main + - v4 jobs: call-build-lint-test-workflow: uses: ./.github/workflows/build-lint-test.yml diff --git a/packages/module/release.config.js b/packages/module/release.config.js index e7b8898..cca6f37 100644 --- a/packages/module/release.config.js +++ b/packages/module/release.config.js @@ -1,14 +1,22 @@ - module.exports = { - branches: [{ name: 'main', channel: 'prerelease' }], + branches: ['do-not-delete', { name: 'v4', channel: 'prerelease-v4', range: '4.x' }], analyzeCommits: { preset: 'angular' }, plugins: [ - '@semantic-release/commit-analyzer', + [ + '@semantic-release/commit-analyzer', + { + preset: 'angular', + releaseRules: [ + { type: 'chore', scope: 'deps', release: 'patch' }, + { type: 'chore', scope: 'ci-release', release: 'patch' } + ] + } + ], '@semantic-release/release-notes-generator', '@semantic-release/github', '@semantic-release/npm' ], - tagFormat: 'v${version}' -}; \ No newline at end of file + tagFormat: 'prerelease-v${version}' +};