semantic-release
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "semantic-release", | ||
"description": "semantic semver compliant package publishing", | ||
"version": "1.1.0", | ||
"author": "Stephan Bönnemann <stephan@boennemann.me>", | ||
@@ -10,4 +11,6 @@ "bin": "./bin/semantic-release", | ||
"dependencies": { | ||
"confirm-simple": "^1.0.3", | ||
"conventional-changelog": "0.0.11", | ||
"github": "^0.2.3", | ||
"github-url-from-git": "^1.4.0", | ||
"minimist": "^1.1.0", | ||
@@ -37,6 +40,6 @@ "parse-github-repo-url": "^1.0.0", | ||
"scripts": { | ||
"prepublish": "./bin/semantic-release pre", | ||
"postpublish": "./bin/semantic-release post", | ||
"test": "standard" | ||
}, | ||
"version": "1.0.0" | ||
} | ||
} |
@@ -16,5 +16,7 @@ # semantic-release | ||
The post hook is automatable in `package.json` with a "postpublish" script: | ||
For maximum comfort you can automate this inside your `package.json`: | ||
```json | ||
"scripts": { | ||
"prepublish": "semantic-release pre" | ||
"postpublish": "semantic-release post" | ||
@@ -24,5 +26,6 @@ } | ||
This is currently not possible for the "prepublish" hook. See [npm/npm#7118](https://github.com/npm/npm/issues/7118). | ||
Note: Even though `semantic-release` works around a limitation in npm's "prepublish" hook using it prints an error that you can *safely ignore*. | ||
See [npm/npm#7118](https://github.com/npm/npm/issues/7118). | ||
MIT License | ||
2015 Stephan Bönnemann |
@@ -8,3 +8,4 @@ 'use strict' | ||
var GitHubApi = require('github') | ||
var parse = require('parse-github-repo-url') | ||
var parseSlug = require('parse-github-repo-url') | ||
var parseUrl = require('github-url-from-git') | ||
@@ -23,3 +24,3 @@ var github = new GitHubApi({ | ||
version: pkg.version, | ||
repository: repository, | ||
repository: parseUrl(repository), | ||
file: false | ||
@@ -32,3 +33,3 @@ }, function(err, log) { | ||
var ghRepo = parse(repository) | ||
var ghRepo = parseSlug(repository) | ||
var release = { | ||
@@ -35,0 +36,0 @@ owner: ghRepo[0], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8435
12
119
30
7
3
+ Addedconfirm-simple@^1.0.3
+ Addedgithub-url-from-git@^1.4.0
+ Addedcolors-mini@1.0.2(transitive)
+ Addedconfirm-simple@1.0.3(transitive)
+ Addedgithub-url-from-git@1.5.0(transitive)