Skip to content

Commit

Permalink
✨ feat: support release on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed May 21, 2023
1 parent 52ae2b5 commit 163ea4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/release-config/src/createConfig.ts
@@ -1,12 +1,12 @@
import type { Options as SemRelOptions, PluginSpec } from 'semantic-release';

import type { Options } from './type';
import commitAnalyzer from './plugins/commitAnalyzer';
import git from './plugins/git';
import github from './plugins/github';
import npm from './plugins/npm';
import type { Options } from './type';

export type { ReleaseRule, Options } from './type';
export type { Options, ReleaseRule } from './type';

export const createConfig = (options?: Options): SemRelOptions => {
const opts = {
Expand Down Expand Up @@ -76,6 +76,7 @@ export const createConfig = (options?: Options): SemRelOptions => {
plugins: plugins.filter((p) => !!p),
branches: [
'master',
'main',
{ name: 'rc-*', prerelease: 'rc', channel: 'rc' },
{ name: 'rc', prerelease: true },
{ name: 'alpha', prerelease: 'alpha', channel: 'alpha' },
Expand Down

0 comments on commit 163ea4b

Please sign in to comment.