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:*",