From ffeb88ad4e28daeccdab7569bb4aa2182a66fcd6 Mon Sep 17 00:00:00 2001 From: Randy Tarampi Date: Fri, 8 Mar 2019 10:50:10 -0800 Subject: [PATCH] fix(semantic-release): Use `@semantic-release/git` properly And actually generate `CHANGELOG.md`s with `@semantic-release/changelog`. --- .releaserc | 12 +++-- package-lock.json | 113 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 + 3 files changed, 122 insertions(+), 5 deletions(-) diff --git a/.releaserc b/.releaserc index 3fca9e6..36131ae 100644 --- a/.releaserc +++ b/.releaserc @@ -1,10 +1,12 @@ plugins: - "@semantic-release/commit-analyzer" - "@semantic-release/release-notes-generator" - - "@semantic-release/git": - assets: - - package.json - - package-lock.json - message: "release(travis): Release ${nextRelease.version}\n\n[skip ci]\n\n${nextRelease.notes}" + - "@semantic-release/changelog" - "@semantic-release/npm" + - - "@semantic-release/git" + - assets: + - package.json + - package-lock.json + - CHANGELOG.md + message: "release(travis): Release ${nextRelease.version}\n\n[skip ci]\n\n${nextRelease.notes}" - "@semantic-release/github" diff --git a/package-lock.json b/package-lock.json index 91eab92..a0a418f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -987,6 +987,40 @@ } } }, + "@semantic-release/changelog": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@semantic-release/changelog/-/changelog-3.0.2.tgz", + "integrity": "sha512-pDUaBNAuPAqQ+ArHwvR160RG2LbfyIVz9EJXgxH0V547rlx/hCs0Sp7L4Rtzi5Z+d6CHcv9g2ynxplE1xAzp2g==", + "dev": true, + "requires": { + "@semantic-release/error": "^2.1.0", + "aggregate-error": "^2.0.0", + "fs-extra": "^7.0.0", + "lodash": "^4.17.4" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + } + } + }, "@semantic-release/commit-analyzer": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-6.1.0.tgz", @@ -1024,6 +1058,85 @@ "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", "dev": true }, + "@semantic-release/git": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-7.0.8.tgz", + "integrity": "sha512-sA+XoPU6GrV+A4YswO0b5JWL1KbzmyyaqUK6Y2poDkIVPlj+oQdi/stpKz/bKF5z9ChMGP87OVPMeUyXGaNFtw==", + "dev": true, + "requires": { + "@semantic-release/error": "^2.1.0", + "aggregate-error": "^2.0.0", + "debug": "^4.0.0", + "dir-glob": "^2.0.0", + "execa": "^1.0.0", + "fs-extra": "^7.0.0", + "globby": "^9.0.0", + "lodash": "^4.17.4", + "micromatch": "^3.1.4", + "p-reduce": "^1.0.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + } + } + }, "@semantic-release/github": { "version": "5.2.10", "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-5.2.10.tgz", diff --git a/package.json b/package.json index 42476b6..31561d0 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,8 @@ "@babel/polyfill": "~7.2.5", "@babel/preset-env": "~7.3.4", "@babel/register": "~7.0.0", + "@semantic-release/changelog": "^3.0.2", + "@semantic-release/git": "^7.0.8", "babel-eslint": "~10.0.1", "babel-loader": "~8.0.5", "babel-plugin-istanbul": "~5.1.1",