From b17aea49ef2766566d382e792dd6e0e3b45ceef0 Mon Sep 17 00:00:00 2001 From: Joram van den Boezem Date: Thu, 24 Nov 2022 12:02:53 +0000 Subject: [PATCH] fix: try to exclude moker README change --- .releaserc.json | 7 ++++++- packages/cli/package.json | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index ba81448e..41b94402 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -9,7 +9,12 @@ [ "@semantic-release/git", { - "assets": ["CHANGELOG.md", "package.json", "packages/*/package.json"], + "assets": [ + "CHANGELOG.md", + "package.json", + "packages/*/package.json", + "!packages/*/README.md" + ], "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}\n\n[skip ci]" } ] diff --git a/packages/cli/package.json b/packages/cli/package.json index ee0f29e3..c9ca76f7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -15,13 +15,12 @@ ], "scripts": { "start": "node moker.js", - "prepublishOnly": "yarn clean && yarn build", + "prepublishOnly": "yarn clean && yarn build && cp ../../README.md .", "clean": "rm -rf dist && rm -rf types", "build": "yarn clean && tsc", "test": "jest", "watch:build": "tsc --watch", - "watch:test": "jest --watch", - "postversion": "cp ../../README.md ." + "watch:test": "jest --watch" }, "dependencies": { "@mokr/core": "workspace:*",