From 0191f9993c746418491cbac132b04aa335c4be17 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Wed, 17 Aug 2022 04:31:31 +0200 Subject: [PATCH] fix: run prettier on changelog --- index.js | 6 ++++++ package-lock.json | 33 +++++++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 40 insertions(+) diff --git a/index.js b/index.js index e4e7922..0302947 100644 --- a/index.js +++ b/index.js @@ -18,6 +18,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.` } ], + [ + '@semantic-release/exec', + { + prepareCmd: 'npx -y prettier --write CHANGELOG.md' + } + ], [ '@semantic-release/npm', { diff --git a/package-lock.json b/package-lock.json index fc4a720..587bdfd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@semantic-release/changelog": "^6.0.1", + "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "semantic-release": "^19.0.3", "semantic-release-license": "^1.0.3" @@ -652,6 +653,25 @@ "node": ">=14.17" } }, + "node_modules/@semantic-release/exec": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@semantic-release/exec/-/exec-6.0.3.tgz", + "integrity": "sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ==", + "dependencies": { + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "debug": "^4.0.0", + "execa": "^5.0.0", + "lodash": "^4.17.4", + "parse-json": "^5.0.0" + }, + "engines": { + "node": ">=14.17" + }, + "peerDependencies": { + "semantic-release": ">=18.0.0" + } + }, "node_modules/@semantic-release/git": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-10.0.1.tgz", @@ -8637,6 +8657,19 @@ "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-3.0.0.tgz", "integrity": "sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==" }, + "@semantic-release/exec": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@semantic-release/exec/-/exec-6.0.3.tgz", + "integrity": "sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ==", + "requires": { + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "debug": "^4.0.0", + "execa": "^5.0.0", + "lodash": "^4.17.4", + "parse-json": "^5.0.0" + } + }, "@semantic-release/git": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-10.0.1.tgz", diff --git a/package.json b/package.json index 9450b7e..0745384 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ }, "dependencies": { "@semantic-release/changelog": "^6.0.1", + "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "semantic-release": "^19.0.3", "semantic-release-license": "^1.0.3"