diff --git a/.releaserc b/.releaserc deleted file mode 100644 index 93d40a7..0000000 --- a/.releaserc +++ /dev/null @@ -1,47 +0,0 @@ -{ - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits" - } - ], - [ - "@google/semantic-release-replace-plugin", - { - "replacements": [ - { - "files": [ - "package.json" - ], - "from": "\"version\": \".*\"", - "to": "\"version\": \"${nextRelease.version}\"", - "results": [ - { - "file": "package.json", - "hasChanged": true, - "numMatches": 1, - "numReplacements": 1 - } - ], - "countMatches": true - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", - { - "preset": "conventionalcommits" - } - ], - "@semantic-release/changelog", - "@semantic-release/github", - [ - "@semantic-release/git", - { - "assets": ["dist/*", "UPGRADE.md", "LICENSE.md", "README.md", "CHANGELOG.md", "action.yml"] - } - ] - ] -} diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..62dcfa6 --- /dev/null +++ b/release.config.js @@ -0,0 +1,55 @@ +module.exports = { + "dryRun": false, + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits" + } + ], + [ + "@google/semantic-release-replace-plugin", + { + "replacements": [ + { + "files": [ + "package.json" + ], + "from": "\"version\": \".*\"", + "to": "\"version\": \"${nextRelease.version}\"", + "results": [ + { + "file": "package.json", + "hasChanged": true, + "numMatches": 1, + "numReplacements": 1 + } + ], + "countMatches": true + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits" + } + ], + "@semantic-release/changelog", + "@semantic-release/github", + [ + "@semantic-release/git", + { + "assets": [ + "dist/*", + "UPGRADE.md", + "LICENSE.md", + "README.md", + "CHANGELOG.md", + "action.yml" + ] + } + ] + ] +}