From ab00ee2ef3392e9a195ae739878f4e87ec1f4b93 Mon Sep 17 00:00:00 2001 From: Joeri de Gooijer Date: Fri, 5 Jul 2024 10:18:00 -0700 Subject: [PATCH] build(setup): Generate changelog on release --- .releaserc.json | 8 +++++++- CHANGELOG.md | 0 package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.releaserc.json b/.releaserc.json index 2ee83b0..9a62bc8 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -10,12 +10,18 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], "@semantic-release/npm", "@semantic-release/github", [ "@semantic-release/git", { - "assets": ["package.json"], + "assets": ["package.json", "pnpm-lock.yaml", "CHANGELOG.md"], "message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}" } ] diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 7e40b83..fcbd6d7 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "generate": "plop", "storybook": "storybook dev -p 6006", "storybook:build": "storybook build", - "e2e": "playwright test", + "e2e": "pnpm storybook:build && playwright test", "e2e:report": "playwright show-report" }, "dependencies": {