diff --git a/.releaserc b/.releaserc index 10416a1..407fc81 100644 --- a/.releaserc +++ b/.releaserc @@ -1,31 +1,3 @@ { - "release": { - "branches": [ - "master" - ] - }, - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits" - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits" - } - ], - [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md", - "changelogTitle": "# CHANGELOG" - } - ], - "@semantic-release/npm", - "@semantic-release/git", - "@semantic-release/github" - ] + "extends": "@jmosawy/semantic-release-config" } diff --git a/package-lock.json b/package-lock.json index b93b3ff..9d70f9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "prettier-config", + "name": "@jmosawy/prettier-config", "version": "1.1.0", "lockfileVersion": 1, "requires": true, @@ -30,6 +30,17 @@ "js-tokens": "^4.0.0" } }, + "@jmosawy/semantic-release-config": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@jmosawy/semantic-release-config/-/semantic-release-config-1.0.0.tgz", + "integrity": "sha512-hjRDCVwSyQXmWxnv+VO6aw5Ens/rrV/imaewd2ZpOuWf9eMQ22TqwhkyDuRZ3FBotYUOLc/H7UTAONkH/wC3bg==", + "dev": true, + "requires": { + "@semantic-release/changelog": "^5.0.1", + "@semantic-release/git": "^9.0.0", + "conventional-changelog-conventionalcommits": "^4.6.0" + } + }, "@nodelib/fs.scandir": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", @@ -618,9 +629,9 @@ } }, "conventional-changelog-conventionalcommits": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz", - "integrity": "sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw==", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.0.tgz", + "integrity": "sha512-sj9tj3z5cnHaSJCYObA9nISf7eq/YjscLPoq6nmew4SiOjxqL2KRpK20fjnjVbpNDjJ2HR3MoVcWKXwbVvzS0A==", "dev": true, "requires": { "compare-func": "^2.0.0", diff --git a/package.json b/package.json index 5aef0d5..cb95588 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,7 @@ }, "homepage": "https://github.com/jmosawy/prettier-config#readme", "devDependencies": { - "@semantic-release/changelog": "^5.0.1", - "@semantic-release/git": "^9.0.0", - "conventional-changelog-conventionalcommits": "^4.5.0", + "@jmosawy/semantic-release-config": "^1.0.0", "prettier": "^2.2.1", "semantic-release": "^17.4.2" },