Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
chore: move release config to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Nov 29, 2022
1 parent 9d12c5a commit ef8206f
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 44 deletions.
44 changes: 0 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,49 +67,5 @@
},
"publishConfig": {
"access": "restricted"
},
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "docs",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "chore",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
}
}
148 changes: 148 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
module.exports = {
branches: [
'main',
'next',
{
name: 'rc',
channel: 'rc',
prerelease: 'rc',
},
{
name: 'beta',
channel: 'beta',
prerelease: 'beta',
},
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{
type: 'refactor',
release: 'patch',
},
{
type: 'docs',
scope: 'README',
release: 'patch',
},
{
type: 'test',
release: 'patch',
},
{
type: 'style',
release: 'patch',
},
{
type: 'perf',
release: 'patch',
},
{
type: 'ci',
release: 'patch',
},
{
type: 'build',
release: 'patch',
},
{
type: 'chore',
release: 'patch',
},
{
type: 'no-release',
release: false,
},
],
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
},
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
},
writerOpts: {
commitsSort: ['subject', 'scope'],
},
presetConfig: {
types: [
{
type: 'feat',
section: ':sparkles: Features',
hidden: false,
},
{
type: 'fix',
section: ':bug: Fixes',
hidden: false,
},
{
type: 'docs',
section: ':memo: Documentation',
hidden: false,
},
{
type: 'style',
section: ':barber: Code-style',
hidden: false,
},
{
type: 'refactor',
section: ':zap: Refactor',
hidden: false,
},
{
type: 'perf',
section: ':fast_forward: Performance',
hidden: false,
},
{
type: 'test',
section: ':white_check_mark: Tests',
hidden: false,
},
{
type: 'ci',
section: ':repeat: CI',
hidden: false,
},
{
type: 'chore',
section: ':repeat: Chore',
hidden: false,
},
{
type: 'build',
section: ':wrench: Build',
hidden: false,
},
],
},
},
],
'@semantic-release/npm',
[
'@semantic-release/github',
{
assets: [
{
path: 'radix-connect.zip',
label: 'radix-connect.zip',
},
{
path: 'radix-connect-dev.zip',
label: 'radix-connect-dev.zip',
},
],
},
],
],
}

0 comments on commit ef8206f

Please sign in to comment.