diff --git a/dist/index.js b/dist/index.js index de6d0a1..b9afdaf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5220,8 +5220,9 @@ async function main () { return } const generatedChangelog = (await fs.readFile(changelogFile)).toString('utf8') - const version = (await fs.readFile('.version')).toString('utf8') - await fs.unlink('.version') + const versionFilename = (core.getInput('dry')) ? '.version-unreleased' : '.version' + const version = (await fs.readFile(versionFilename)).toString('utf8') + await fs.unlink(versionFilename) const parsedVersion = new SemVer(version) core.setOutput('changelog', generatedChangelog) core.debug(`setting version to ${parsedVersion.version}`) diff --git a/package-lock.json b/package-lock.json index 61eef65..b456200 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1018,9 +1018,9 @@ "dev": true }, "husky": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/husky/-/husky-4.3.5.tgz", - "integrity": "sha512-E5S/1HMoDDaqsH8kDF5zeKEQbYqe3wL9zJDyqyYqc8I4vHBtAoxkDBGXox0lZ9RI+k5GyB728vZdmnM4bYap+g==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-4.3.6.tgz", + "integrity": "sha512-o6UjVI8xtlWRL5395iWq9LKDyp/9TE7XMOTvIpEVzW638UcGxTmV5cfel6fsk/jbZSTlvfGVJf2svFtybcIZag==", "dev": true, "requires": { "chalk": "^4.0.0", diff --git a/package.json b/package.json index b516b7e..9c5c647 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@zeit/ncc": "^0.22.3", - "husky": "^4.3.5", + "husky": "^4.3.6", "standard": "^16.0.3" }, "husky": {