From 827df5037efd88d158cf20bdacc2bee0ac8d17d9 Mon Sep 17 00:00:00 2001 From: khoilen Date: Sun, 5 Jan 2025 14:42:30 +0700 Subject: [PATCH] feat(release): add release auto fetch version --- apps/nt-stylesheet/CHANGELOG.md | 0 release.config.cjs | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 apps/nt-stylesheet/CHANGELOG.md diff --git a/apps/nt-stylesheet/CHANGELOG.md b/apps/nt-stylesheet/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/release.config.cjs b/release.config.cjs index ebcc7f0..07e966b 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -3,4 +3,28 @@ */ module.exports = { branches: ['main', { name: 'beta', prerelease: true }], + repositoryUrl: 'https://github.com/nashtech-garage/nt-sketchbook', + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/changelog', + [ + '@semantic-release/npm', + { + pkgRoot: 'apps/nt-stylesheet', + }, + ], + '@semantic-release/github', + [ + '@semantic-release/git', + { + assets: [ + 'apps/nt-stylesheet/package.json', + 'apps/nt-stylesheet/CHANGELOG.md', + ], + message: + 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', + }, + ], + ], }