From def9ad759d39da21639358b06bd847ab30b3cb7b Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Sat, 8 Jan 2022 07:32:04 +0100 Subject: [PATCH] chore: add semantic release config (#155) Generate changelogs again --- package.json | 87 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 64 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index f77456f..26a17f4 100644 --- a/package.json +++ b/package.json @@ -60,27 +60,68 @@ "err-code": "^3.0.1", "stream-to-it": "^0.2.2" }, - "contributors": [ - "David Dias ", - "Jacob Heun ", - "Vasco Santos ", - "Stephen Whitmore ", - "Friedel Ziegelmayer ", - "Alex Potsides ", - "Richard Littauer ", - "Tom White ", - "Alan Shaw ", - "Nazar Hussain ", - "Pedro Teixeira ", - "Prashanth Chandra ", - "Ryan Mehta ", - "Linus Unnebäck ", - "Cayman ", - "Diogo Silva ", - "Dmitriy Ryajov ", - "Drew Stone ", - "Evan Schwartz ", - "João Antunes ", - "Mikeal Rogers " - ] + "release": { + "branches": [ + "master" + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", { + "preset": "conventionalcommits", + "releaseRules": [{ + "breaking": true, + "release": "major" + }, { + "revert": true, + "release": "patch" + }, { + "type": "feat", + "release": "minor" + }, { + "type": "fix", + "release": "patch" + }, { + "type": "chore", + "release": "patch" + }, { + "type": "docs", + "release": "patch" + }, { + "type": "test", + "release": "patch" + }, { + "scope": "no-release", + "release": false + }] + } + ], + [ + "@semantic-release/release-notes-generator", { + "preset": "conventionalcommits", + "presetConfig": { + "types": [{ + "type": "feat", + "section": "Features" + }, { + "type": "fix", + "section": "Bug Fixes" + }, { + "type": "chore", + "section": "Trivial Changes" + }, { + "type": "docs", + "section": "Trivial Changes" + }, { + "type": "test", + "section": "Tests" + }] + } + } + ], + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/github", + "@semantic-release/git" + ] + } }