From 10ca15eddebbfbdb764f6c8b7ad469765aace385 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sun, 6 Nov 2022 01:04:19 -0700 Subject: [PATCH] chore: add changelog with @semantic-release/changelog (#771) * chore: add changelog with @semantic-release/changelog * Update package.json --- .releaserc | 10 ++++++---- CHANGELOG.md | 0 package.json | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.releaserc b/.releaserc index 2e1d44a1..b7d1e50a 100644 --- a/.releaserc +++ b/.releaserc @@ -4,16 +4,18 @@ "preset": "angular", "releaseRules": [ {"type": "chore", "release": "patch"} - ] }], - "@semantic-release/npm", "@semantic-release/release-notes-generator", + ["@semantic-release/changelog", { + "changelogFile": "CHANGELOG.md" + }], + "@semantic-release/npm", ["@semantic-release/git", { - "assets": ["docs", "package.json"], + "assets": ["docs", "package.json", "CHANGELOG.md"], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" }], - "@semantic-release/github", + "@semantic-release/github" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..e69de29b diff --git a/package.json b/package.json index b7da65a4..7c2ced98 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "lib", "build/index.js", "build/lib", - "bootstrap/bin/AppiumBootstrap.jar" + "bootstrap/bin/AppiumBootstrap.jar", + "CHANGELOG.md" ], "dependencies": { "@babel/runtime": "^7.0.0", @@ -96,6 +97,7 @@ "@babel/plugin-transform-runtime": "^7.18.10", "@babel/preset-env": "^7.18.10", "@babel/register": "^7.18.9", + "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "@xmldom/xmldom": "^0.x", "android-apidemos": "^4.1.0",