fix(ns-paystack): update release config

This commit is contained in:
Brian Pooe 2023-06-04 15:06:02 +02:00
commit 7bca4d7f9d
5 changed files with 444 additions and 17725 deletions

View file

@ -56,7 +56,7 @@
"executor": "nx:run-commands", "executor": "nx:run-commands",
"outputs": [], "outputs": [],
"options": { "options": {
"command": "npx semantic-release-plus --extends ./libs/ns-paystack/release.config.js", "command": "npx semantic-release-plus --debug --extends ./libs/ns-paystack/release.config.js",
"parallel": false "parallel": false
} }
} }

View file

@ -1,21 +1,33 @@
const name = 'ns-paystack'; const name = 'ns-paystack';
const srcRoot = `libs/${name}`; const srcRoot = `libs/${name}`;
const appName = 'ns-paystack';
const appPath = `libs/${appName}`;
const artifactName = appName;
module.exports = { module.exports = {
extends: 'release.config.base.js', name: appName,
pkgRoot: `dist/${srcRoot}`, pkgRoot: `dist/${appPath}`,
tagFormat: name + '-v${version}', tagFormat: artifactName + '-v${version}',
commitPaths: [`${srcRoot}/*`], commitPaths: ['force-release.md', `${appPath}/*`],
branches: ['main'], assets: [`${appPath}/README.md`, `${appPath}/CHANGELOG.md`],
plugins: [ plugins: [
'@semantic-release/commit-analyzer', '@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator', '@semantic-release/release-notes-generator',
[ [
'@semantic-release/changelog', '@semantic-release/changelog',
{ {
changelogFile: `${srcRoot}/CHANGELOG.md` changelogFile: `${appPath}/CHANGELOG.md`,
} },
], ],
'@semantic-release/npm' '@semantic-release/npm',
] [
'@semantic-release/git',
{
message:
`chore(release): ${artifactName}` +
'-v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
}; };

18104
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,3 +0,0 @@
module.exports = {
extends: 'semantic-release-npm-github-publish'
};

16
release.config.js Normal file
View file

@ -0,0 +1,16 @@
module.exports = {
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'chore', section: 'Chores' },
{ type: 'docs', hidden: true },
{ type: 'style', hidden: true },
{ type: 'refactor', section: 'Refactoring' },
{ type: 'perf', hidden: true },
{ type: 'test', hidden: true },
],
},
releaseRules: [{ type: 'refactor', release: 'patch' }],
};