Socket
Socket
Sign inDemoInstall

github-release-from-changelog

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-release-from-changelog - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

CHANGELOG.md

@@ -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

13

github-release-from-changelog.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc