From 255067f03ee9c5a3486a63a8ee8bc2eabfd54949 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 12 Aug 2023 19:21:08 -0400 Subject: [PATCH] ci: add semantic release --- .releaserc.json | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 5 ++++ 2 files changed, 78 insertions(+) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..496e8d9 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,73 @@ +{ + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "releaseRules": [ + { + "breaking": true, + "release": "major" + }, + { + "revert": true, + "release": "patch" + }, + { + "type": "feat", + "release": "minor" + }, + { + "type": "fix", + "release": "patch" + }, + { + "type": "perf", + "release": "patch" + }, + { + "type": "dep", + "release": "patch" + }, + { + "type": "refactor", + "release": "patch" + } + ] + } + ], + "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/npm", + { + "npmPublish": false + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "package.json", + "CHANGELOG.md", + "npm-shrinkwrap.json" + ] + } + ] + ], + "branches": [ + "master", + { + "name": "develop", + "prerelease": true + }, + { + "name": "develop-*", + "prerelease": true + } + ] +} diff --git a/package.json b/package.json index 708082a..c725687 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,11 @@ "typewriter-effect": "^2.19.0" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/npm": "^10.0.4", + "@semantic-release/release-notes-generator": "^11.0.4", + "semantic-release": "^21.0.7", "stylelint": "^15.6.0", "stylelint-config-standard": "^33.0.0" }