github-release-from-changelog
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,3 +1,8 @@ | ||
# 1.1.0 - 2015-11-10 | ||
- Added: `--filename` option to specify your own filename | ||
(if you don't use `CHANGELOG.md`). | ||
# 1.0.0 - 2015-10-04 | ||
✨ Initial release |
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
* $ GITHUB_TOKEN=aGitHubToken | ||
* $ npmrelease | ||
* $ github-release-from-changelog [--filename CustomChangelog.md] | ||
* | ||
@@ -25,2 +25,9 @@ * we will use `grizzly` (https://github.com/coderaiser/node-grizzly) | ||
// read command line arguments | ||
var minimist = require('minimist'); | ||
var argv = minimist(process.argv.slice(2)); | ||
// changelog file name | ||
var changelogFileName = argv.filename || "CHANGELOG.md"; | ||
// get dep | ||
@@ -39,5 +46,5 @@ var release = require("grizzly") | ||
try { | ||
changelog = require("fs").readFileSync(process.cwd() + "/CHANGELOG.md", {encoding: "utf8"}) | ||
changelog = require("fs").readFileSync(process.cwd() + "/" + changelogFileName, {encoding: "utf8"}) | ||
} | ||
catch(e) {throw "No CHANGELOG.md found in " + process.cwd()} | ||
catch(e) {throw "No " + changelogFileName + " found in " + process.cwd()} | ||
@@ -44,0 +51,0 @@ // parse repository url to get owner & repo slug |
{ | ||
"name": "github-release-from-changelog", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Create GitHub releases from CHANGELOG.md", | ||
@@ -22,3 +22,4 @@ "keywords": [ | ||
"dependencies": { | ||
"grizzly": "^1.0.14" | ||
"grizzly": "^1.0.14", | ||
"minimist": "^1.2.0" | ||
}, | ||
@@ -25,0 +26,0 @@ "devDependencies": { |
@@ -5,2 +5,4 @@ # github-release-from-changelog | ||
**Works great with [npmpub(lish)](https://github.com/MoOx/npmpublish).** | ||
You need: | ||
@@ -21,4 +23,2 @@ | ||
**Works great with [npmpublish](https://github.com/MoOx/npmpublish).** | ||
## Install | ||
@@ -33,3 +33,3 @@ | ||
```console | ||
$ github-release-from-changelog | ||
$ github-release-from-changelog [--filename CustomChangelog.md] | ||
``` | ||
@@ -36,0 +36,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5250
91
2
+ Addedminimist@^1.2.0