From fd60d3839eb39542e4bc8c56a3a33aa41f25247a Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Fri, 18 Oct 2019 11:25:57 +0200 Subject: [PATCH] fix: Test release --- CHANGELOG.md | 35 ----------------------------------- package.json | 2 +- src/index.js | 9 ++++++--- 3 files changed, 7 insertions(+), 39 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index ab2a7a1..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# [1.1.0](https://github.com/TriPSs/conventional-changelog-action/compare/v0.0.1...v1.1.0) (2019-10-18) - - -### Bug Fixes - -* Test release ([7365edf](https://github.com/TriPSs/conventional-changelog-action/commit/7365edf6f58d23baf8383668f83170dcb46bf5e6)) -* Test release ([d0cd7bf](https://github.com/TriPSs/conventional-changelog-action/commit/d0cd7bf31f1a8e24ef4d44422d3fb9a4c694c89a)) -* Test release ([37217f5](https://github.com/TriPSs/conventional-changelog-action/commit/37217f530cbbb866612b86d6c8a27d068d16e652)) -* Test release ([1f63990](https://github.com/TriPSs/conventional-changelog-action/commit/1f63990fabc8bbf5d7cf9b234a4eb75c350518c3)) -* Test release ([57d7d45](https://github.com/TriPSs/conventional-changelog-action/commit/57d7d4594f47d66d8de3eb1b7f4207130a7697ac)) -* Test release ([c8e9ea6](https://github.com/TriPSs/conventional-changelog-action/commit/c8e9ea6338b809f0b2fb3b4e0ce037d7b26d7325)) -* Test release ([a85634b](https://github.com/TriPSs/conventional-changelog-action/commit/a85634b8c7dc152dc1cf027ba5a91df6634f9ef2)) -* Test release ([234446d](https://github.com/TriPSs/conventional-changelog-action/commit/234446dc90c9969a41a3bd97841e47adf81b50ee)) -* Test release ([ab2ea09](https://github.com/TriPSs/conventional-changelog-action/commit/ab2ea0974adb27fd4e2bb45fd21e51b2c8181c27)) -* Test release ([7cbbde6](https://github.com/TriPSs/conventional-changelog-action/commit/7cbbde6d9f2fc92e95b50eb8474ed08437ffe6f3)) -* Test release ([9d10bb2](https://github.com/TriPSs/conventional-changelog-action/commit/9d10bb22adb57a2b4953272c7a938af9ab4f301b)) - - -### Features - -* Test release ([c471392](https://github.com/TriPSs/conventional-changelog-action/commit/c47139231d3289a08ee39c0b1978b9e935d456a5)) -* Test release ([d71558c](https://github.com/TriPSs/conventional-changelog-action/commit/d71558cec69d773fb6846734b57ff55a6d7b3648)) -* Test release ([5945aae](https://github.com/TriPSs/conventional-changelog-action/commit/5945aaed8f5e59d227742dd35670381cf444aa93)) - - - -## [0.0.1](https://github.com/TriPSs/conventional-changelog-action/compare/70ed437cb42d5ad01303d98797a7988fe1266f6b...v0.0.1) (2019-10-17) - - -### Bug Fixes - -* Fixed name action.yml ([70ed437](https://github.com/TriPSs/conventional-changelog-action/commit/70ed437cb42d5ad01303d98797a7988fe1266f6b)) - - - diff --git a/package.json b/package.json index 1f1e1ce..aab0a7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "conventional-changelog-action", - "version": "1.0.0", + "version": "1.1.0", "description": "", "main": "index.js", "scripts": { diff --git a/src/index.js b/src/index.js index c702a65..ef895aa 100644 --- a/src/index.js +++ b/src/index.js @@ -23,11 +23,15 @@ async function run() { } else { core.info(`Recommended release type: ${recommendation.releaseType}`) + // Bump the version in the package.json const jsonPackage = packageJson.bump( packageJson.get(), recommendation.releaseType, ) + // Update the package.json file + packageJson.update(jsonPackage) + core.info(`New version: ${jsonPackage.version}`) const changelogStream = conventionalChangelog({ @@ -43,14 +47,13 @@ async function run() { changelogStream .pipe(fs.createWriteStream('CHANGELOG.md')) - .on('finish',async () => { + .on('finish', async() => { + core.info('Push all changes') // Add changed files to git await git.add('.') await git.commit(commitMessage.replace('{version}', jsonPackage.version)) await git.push() - }) - } })