From 3b0cdc94fad6289b3fc296385f3b925755fa2cf3 Mon Sep 17 00:00:00 2001 From: Daniel Grefberg Date: Thu, 3 Sep 2020 17:36:45 +0200 Subject: [PATCH] chore: add changelog and git plugins for semantic-release --- package.json | 2 ++ release.config.js | 13 +++++++++++++ yarn.lock | 28 ++++++++++++++++++++++++++-- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b34b3b0..3718f3e 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,8 @@ "@canvas/image-data": "1.0.0", "@commitlint/cli": "9.1.2", "@commitlint/config-conventional": "9.1.2", + "@semantic-release/changelog": "5.0.1", + "@semantic-release/git": "9.0.0", "@types/jest": "26.0.10", "@types/sharp": "0.25.1", "commitizen": "4.2.1", diff --git a/release.config.js b/release.config.js index 29bbca2..3b755db 100644 --- a/release.config.js +++ b/release.config.js @@ -1,3 +1,16 @@ module.exports = { branches: ['master'], + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/github', + '@semantic-release/changelog', + [ + '@semantic-release/git', + { + assets: ['package.json', 'yarn.lock', 'CHANGELOG.md'], + message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', + }, + ], + ], }; diff --git a/yarn.lock b/yarn.lock index e2d3e53..b37a97b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1642,6 +1642,16 @@ dependencies: "@types/node" ">= 8" +"@semantic-release/changelog@5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-5.0.1.tgz#50a84b63e5d391b7debfe021421589fa2bcdafe4" + integrity sha512-unvqHo5jk4dvAf2nZ3aw4imrlwQ2I50eVVvq9D47Qc3R+keNqepx1vDYwkjF8guFXnOYaYcR28yrZWno1hFbiw== + dependencies: + "@semantic-release/error" "^2.1.0" + aggregate-error "^3.0.0" + fs-extra "^9.0.0" + lodash "^4.17.4" + "@semantic-release/commit-analyzer@^8.0.0": version "8.0.1" resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz#5d2a37cd5a3312da0e3ac05b1ca348bf60b90bca" @@ -1655,11 +1665,25 @@ lodash "^4.17.4" micromatch "^4.0.2" -"@semantic-release/error@^2.2.0": +"@semantic-release/error@^2.1.0", "@semantic-release/error@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0" integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg== +"@semantic-release/git@9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-9.0.0.tgz#304c4883c87d095b1faaae93300f1f1e0466e9a5" + integrity sha512-AZ4Zha5NAPAciIJH3ipzw/WU9qLAn8ENaoVAhD6srRPxTpTzuV3NhNh14rcAo8Paj9dO+5u4rTKcpetOBluYVw== + dependencies: + "@semantic-release/error" "^2.1.0" + aggregate-error "^3.0.0" + debug "^4.0.0" + dir-glob "^3.0.0" + execa "^4.0.0" + lodash "^4.17.4" + micromatch "^4.0.0" + p-reduce "^2.0.0" + "@semantic-release/github@^7.0.0": version "7.0.7" resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-7.0.7.tgz#e3999b06433d08871acd68ecec2b4e212c05d09f" @@ -6973,7 +6997,7 @@ micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" -micromatch@^4.0.2: +micromatch@^4.0.0, micromatch@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==