From 0978361b2f942374d7f6d5bec3094f8839866188 Mon Sep 17 00:00:00 2001 From: atheius Date: Mon, 29 Jul 2024 20:31:00 +0100 Subject: [PATCH] fix: move semantic-release config --- package.json | 30 +----------------------------- release.config.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 release.config.js diff --git a/package.json b/package.json index 25bb62d..79d761b 100644 --- a/package.json +++ b/package.json @@ -7,39 +7,11 @@ "directories": { "test": "test" }, - "release": { - "branches": [ - "main" - ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "angular", - "releaseRules": [ - { - "type": "chore", - "release": "patch" - } - ] - } - ], - "@semantic-release/release-notes-generator", - [ - "@semantic-release/npm", - { - "npmPublish": false - } - ], - "@semantic-release/github" - ] - }, "scripts": { "test": "node --test --experimental-test-coverage test/**/*.test.js", "lint": "eslint .", "start": "fastify start -l info -P ./src/app.js --address 0.0.0.0", - "dev": "fastify start -w -l info -P ./src/app.js --ignore-watch='node_modules .git tmp'", - "release": "semantic-release" + "dev": "fastify start -w -l info -P ./src/app.js --ignore-watch='node_modules .git tmp'" }, "keywords": [], "author": "James Mugliston", diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..37e0b58 --- /dev/null +++ b/release.config.js @@ -0,0 +1,28 @@ +/** + * @type {import('semantic-release').GlobalConfig} + */ +export default { + branches: ['main'], + plugins: [ + [ + '@semantic-release/commit-analyzer', + { + preset: 'angular', + releaseRules: [ + { + type: 'chore', + release: 'patch', + }, + ], + }, + ], + '@semantic-release/release-notes-generator', + [ + '@semantic-release/npm', + { + npmPublish: false, + }, + ], + '@semantic-release/github', + ], +}