From fe04657093d65d25783d9998a46f84f41dde66a8 Mon Sep 17 00:00:00 2001 From: Sebastian Schauer <233635+makaanneo@users.noreply.github.com> Date: Wed, 12 Jan 2022 16:00:10 +0100 Subject: [PATCH] feat: Add proper config to update and commit plugin manifest with version --- .releaserc | 10 +++++++--- package-lock.json | 20 -------------------- package.json | 1 - 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/.releaserc b/.releaserc index 5032d0e..94fb233 100644 --- a/.releaserc +++ b/.releaserc @@ -5,9 +5,13 @@ "@semantic-release/release-notes-generator", "@semantic-release/changelog", "@semantic-release/npm", - "@semantic-release/git", ["@semantic-release/exec", { - "prepareCmd": "npm run bump-plugin-version -- ${nextRelease.version}" + "prepareCmd": "npm run bump-plugin-version -- ${nextRelease.version} && npm install", }], + ["@semantic-release/git", { + "assets": ["src/manifest.json", 'CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'], + }], + "@semantic-release/github", + ] -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index e1ab1b5..f2537d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/npm": "^8.0.3", - "@types/chokidar": "^2.1.3", "@types/fs-extra": "^9.0.12", "@types/jest": "^27.0.1", "@types/node": "^16.6.1", @@ -1622,16 +1621,6 @@ "@babel/types": "^7.3.0" } }, - "node_modules/@types/chokidar": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@types/chokidar/-/chokidar-2.1.3.tgz", - "integrity": "sha512-6qK3xoLLAhQVTucQGHTySwOVA1crHRXnJeLwqK6KIFkkKa2aoMFXh+WEi8PotxDtvN6MQJLyYN9ag9P6NLV81w==", - "deprecated": "This is a stub types definition. chokidar provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "chokidar": "*" - } - }, "node_modules/@types/eslint": { "version": "8.2.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.2.1.tgz", @@ -15122,15 +15111,6 @@ "@babel/types": "^7.3.0" } }, - "@types/chokidar": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@types/chokidar/-/chokidar-2.1.3.tgz", - "integrity": "sha512-6qK3xoLLAhQVTucQGHTySwOVA1crHRXnJeLwqK6KIFkkKa2aoMFXh+WEi8PotxDtvN6MQJLyYN9ag9P6NLV81w==", - "dev": true, - "requires": { - "chokidar": "*" - } - }, "@types/eslint": { "version": "8.2.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.2.1.tgz", diff --git a/package.json b/package.json index 2529927..9eb6b2f 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/npm": "^8.0.3", - "@types/chokidar": "^2.1.3", "@types/fs-extra": "^9.0.12", "@types/jest": "^27.0.1", "@types/node": "^16.6.1",