From af2fa4bc093e63e092602df14763e11019cfa829 Mon Sep 17 00:00:00 2001 From: benbenbang Date: Sun, 30 Oct 2022 23:17:07 +0100 Subject: [PATCH] ci(rl): update toml ver and add releaserc file --- .releaserc.json | 173 ++++++++++++++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 174 insertions(+), 1 deletion(-) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..d48650e --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,173 @@ +{ + "branches": "main", + "parserOpts": { + "revertPattern": "^Revert\\s.(\\w*\\([\\w\\$\\.\\-\\* ]*\\)\\: .*).\\s*This reverts commit (\\w*)?" + }, + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "parserOpts": { + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES" + ] + }, + "preset": "conventionalcommits", + "releaseRules": [ + { + "release": "major", + "type": "*!" + }, + { + "release": "minor", + "type": "feat" + }, + { + "release": "patch", + "type": "perf" + }, + { + "release": "patch", + "type": "build" + }, + { + "release": "patch", + "type": "ops" + }, + { + "release": "patch", + "type": "refactor" + }, + { + "release": "patch", + "type": "ci" + }, + { + "release": "patch", + "type": "hotfix" + }, + { + "release": "patch", + "type": "fix" + } + ] + } + ], + "@semantic-release/release-notes-generator", + [ + "@semantic-release/github", + { + "gitlabUrl": "https://github.com/benbenbang" + } + ] + ], + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "section": ":zap: Breaking Changes", + "type": "*!" + }, + { + "hidden": false, + "section": ":gift: Features", + "type": "feat" + }, + { + "hidden": false, + "section": ":tools: Enhancement & Maintenance", + "type": "refactor" + }, + { + "hidden": false, + "section": ":hotsprings: CI & Dev & Infra", + "type": "ci" + }, + { + "hidden": false, + "section": ":hotsprings: CI & Dev & Infra", + "type": "ops" + }, + { + "hidden": false, + "section": ":hotsprings: CI & Dev & Infra", + "type": "chore" + }, + { + "hidden": false, + "section": ":fire: Hotfixes", + "type": "hotfix" + }, + { + "hidden": false, + "section": ":beetle: Bug Fixes", + "type": "fix" + }, + { + "hidden": false, + "section": ":track_previous: Reverts", + "type": "revert" + }, + { + "hidden": true, + "type": "build" + }, + { + "hidden": true, + "type": "wip" + }, + { + "hidden": true, + "type": "docs" + }, + { + "hidden": true, + "type": "test" + }, + { + "hidden": true, + "type": "release" + } + ] + }, + "releaseRules": [ + { + "release": "major", + "type": "feat" + }, + { + "release": "patch", + "type": "perf" + }, + { + "release": "patch", + "type": "build" + }, + { + "release": "patch", + "type": "ops" + }, + { + "release": "patch", + "type": "ci" + }, + { + "release": "patch", + "type": "refactor" + }, + { + "release": "patch", + "type": "chore" + }, + { + "release": "patch", + "type": "hotfix" + }, + { + "release": "patch", + "type": "fix" + } + ], + "tagFormat": "${version}" +} diff --git a/pyproject.toml b/pyproject.toml index 0587e2c..491fd17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "flask-providers-session" -version = "0.4.0" +version = "0.4.1" description = "Fork version flask session" authors = ["benbenbang "] maintainers = [