From 58d0da0e974f7d02d58f49377675a45659d67748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Sun, 2 Apr 2023 16:53:09 +0000 Subject: [PATCH] chore: fix release CI --- package.json | 1 - release.config.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 release.config.js diff --git a/package.json b/package.json index f82ba0e..9d7ded2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "keywords": [ "lovelace" ], - "npmPublish": false, "author": "RomRider", "license": "MIT", "bugs": { diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..d4f69cd --- /dev/null +++ b/release.config.js @@ -0,0 +1,42 @@ +/* eslint-disable no-template-curly-in-string */ +module.exports = { + plugins: [ + '@semantic-release/commit-analyzer', + [ + '@semantic-release/release-notes-generator', + { + preset: 'conventionalcommits', + presetConfig: { + types: [ + { type: 'feat', section: 'Features' }, + { type: 'fix', section: 'Bug Fixes' }, + { type: 'doc', hidden: false, section: 'Documentation' }, + { type: 'docs', hidden: false, section: 'Documentation' }, + { type: 'chore', hidden: true, section: 'Chores' }, + ], + }, + }, + ], + '@semantic-release/changelog', + [ + '@semantic-release/npm', + { + npmPublish: false, + }, + ], + [ + '@semantic-release/git', + { + assets: ['CHANGELOG.md', 'README.md', 'package.json', 'yarn.lock'], + }, + ], + [ + '@semantic-release/github', + { + assets: 'dist/*.js', + }, + ], + ], + preset: 'conventionalcommits', + branches: [{ name: 'master' }, { name: 'dev', channel: 'beta', prerelease: true }], +}; \ No newline at end of file