diff --git a/libs/nestjs-auth/release.config.js b/libs/nestjs-auth/release.config.js index 1896b497..41596aab 100644 --- a/libs/nestjs-auth/release.config.js +++ b/libs/nestjs-auth/release.config.js @@ -4,6 +4,7 @@ const name = 'nestjs-auth' const srcRoot = `libs/${name}` module.exports = { + extends: join('..', '..',`release.config.base.js`), pkgRoot: join('..', '..', 'dist',`${srcRoot}`), branches: [{ name: 'master' }, { name: 'develop', channel: 'dev', prerelease: 'dev' }], tagFormat: name + '-${version}', diff --git a/libs/nestjs-logger/release.config.js b/libs/nestjs-logger/release.config.js index 7e72a5ff..40210077 100644 --- a/libs/nestjs-logger/release.config.js +++ b/libs/nestjs-logger/release.config.js @@ -4,6 +4,7 @@ const name = 'nestjs-logger' const srcRoot = `libs/${name}` module.exports = { + extends: join('..', '..',`release.config.base.js`), pkgRoot: join('..', '..', 'dist',`${srcRoot}`), branches: [{ name: 'master' }, { name: 'develop', channel: 'dev', prerelease: 'dev' }], tagFormat: name + '-${version}', diff --git a/libs/nestjs-storage/release.config.js b/libs/nestjs-storage/release.config.js index 52a7f61c..6f8971d2 100644 --- a/libs/nestjs-storage/release.config.js +++ b/libs/nestjs-storage/release.config.js @@ -4,6 +4,7 @@ const name = 'nestjs-storage' const srcRoot = `libs/${name}` module.exports = { + extends: join('..', '..',`release.config.base.js`), pkgRoot: join('..', '..', 'dist',`${srcRoot}`), branches: [{ name: 'master' }, { name: 'develop', channel: 'dev', prerelease: 'dev' }], tagFormat: name + '-${version}', diff --git a/package-lock.json b/package-lock.json index d6c34848..d1cbd5a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -61,6 +61,7 @@ "prettier": "^2.6.2", "semantic-release": "^22.0.5", "semantic-release-jira-notes": "^3.0.0", + "semantic-release-npm-github-publish": "^1.5.5", "ts-jest": "29.2.5", "ts-node": "10.9.2", "typescript": "5.5.4", @@ -21780,6 +21781,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/semantic-release-npm-github-publish": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/semantic-release-npm-github-publish/-/semantic-release-npm-github-publish-1.5.5.tgz", + "integrity": "sha512-VDXPQGFL9kJ26m4usq4N4+n4xe6bJ1MaQkwCNlVnz9LCJch33bFCCLLP7tNZk73T8E7GUjkq+Z24wnA5clO7wA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@semantic-release/changelog": ">=6.0.0", + "@semantic-release/commit-analyzer": ">=9.0.0", + "@semantic-release/git": ">=10.0.0", + "@semantic-release/github": ">=8.0.0", + "@semantic-release/npm": ">=9.0.0", + "@semantic-release/release-notes-generator": ">=10.0.0", + "semantic-release": ">=20.0.0" + } + }, "node_modules/semantic-release/node_modules/@semantic-release/error": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-4.0.0.tgz", @@ -41344,6 +41361,13 @@ } } }, + "semantic-release-npm-github-publish": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/semantic-release-npm-github-publish/-/semantic-release-npm-github-publish-1.5.5.tgz", + "integrity": "sha512-VDXPQGFL9kJ26m4usq4N4+n4xe6bJ1MaQkwCNlVnz9LCJch33bFCCLLP7tNZk73T8E7GUjkq+Z24wnA5clO7wA==", + "dev": true, + "requires": {} + }, "semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", diff --git a/package.json b/package.json index 8fae85fc..e09b5cb3 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "prettier": "^2.6.2", "semantic-release": "^22.0.5", "semantic-release-jira-notes": "^3.0.0", + "semantic-release-npm-github-publish": "^1.5.5", "ts-jest": "29.2.5", "ts-node": "10.9.2", "typescript": "5.5.4", diff --git a/release.config.base.js b/release.config.base.js new file mode 100644 index 00000000..4a73a46d --- /dev/null +++ b/release.config.base.js @@ -0,0 +1,3 @@ +module.exports = { + extends: 'semantic-release-npm-github-publish', +}