Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
527c45fbf5 | ||
|
|
3554d1ab89 | ||
|
|
6f28f31ffe | ||
|
|
d0fc38cafb | ||
|
|
5711e95c79 | ||
|
|
e55b70dbf8 | ||
|
|
399da06843 | ||
|
|
ee2a7306e7 | ||
|
|
03534e51bc | ||
|
|
85b35aaed3 | ||
|
|
360a514171 | ||
|
|
90174c80a0 |
@@ -14,6 +14,9 @@ before_install:
|
||||
- npm i -g npm@^2.0.0
|
||||
before_script:
|
||||
- npm prune
|
||||
- curl -Lo travis_after_all.py https://git.io/vLSON
|
||||
after_success:
|
||||
- python travis_after_all.py
|
||||
- export $(cat .to_export_back)
|
||||
- npm run coverage:upload
|
||||
- npm run semantic-release
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
[](https://github.com/semantic-release/semantic-release)
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
[](https://david-dm.org/semantic-release/semantic-release/next)
|
||||
[](https://david-dm.org/semantic-release/semantic-release/next#info=devDependencies)
|
||||
[](https://david-dm.org/semantic-release/semantic-release/badger)
|
||||
[](https://david-dm.org/semantic-release/semantic-release/badger#info=devDependencies)
|
||||
|
||||
[](https://travis-ci.org/semantic-release/semantic-release)
|
||||
[](https://coveralls.io/github/semantic-release/semantic-release?branch=next)
|
||||
[](https://travis-ci.org/semantic-release/semantic-release)
|
||||
[](https://coveralls.io/github/semantic-release/semantic-release?branch=badger)
|
||||
|
||||
Out of the box this is just about _commit-messages_, but you can do so much more.
|
||||
|
||||
@@ -26,7 +26,7 @@ Out of the box this is just about _commit-messages_, but you can do so much more
|
||||
| **manual** | <pre><code><div>npm version major</div><div>git push origin master --tags</div><div>npm publish</div></code></pre> | You **manually decide** what the **next version** is. You have to remember what major, minor and patch means. You have to remember to push both commits and tags. You have to wait for the CI to pass. |
|
||||
| **semantic-release** | <pre><code><div>git commit -m "fix: <message>"</div><div>git push</div></code></pre> | You **describe the changes** you’ve made. A new version is automatically published with the correct version number.
|
||||
|
||||
This removes the immediate connection between human emotions and version numbers, so strictly following the [SemVer](http://semver.org/) spec is not a problem anymore – and that’s ultimately `semantic-release`’s goal.
|
||||
This removes the immediate connection between human emotions and version numbers, so strictly following the [SemVer](http://semver.org/) spec is not a problem anymore – and that’s ultimately `semantic-release`’s goal.
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
+4
-7
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@semantic-release/commit-analyzer": "^2.0.0",
|
||||
"@semantic-release/condition-travis": "^4.1.0",
|
||||
"@semantic-release/condition-travis": "^4.1.2",
|
||||
"@semantic-release/error": "^1.0.0",
|
||||
"@semantic-release/last-release-npm": "^1.2.1",
|
||||
"@semantic-release/release-notes-generator": "^2.0.0",
|
||||
@@ -66,16 +66,13 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"publishConfig": {
|
||||
"tag": "next"
|
||||
},
|
||||
"release": {
|
||||
"branch": "next"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/semantic-release/semantic-release.git"
|
||||
},
|
||||
"release": {
|
||||
"branch": "badger"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rimraf dist && mkdirp dist && babel src --out-dir dist",
|
||||
"coverage": "nyc report",
|
||||
|
||||
+9
-3
@@ -25,9 +25,6 @@ const options = _.defaults(
|
||||
pkg.release,
|
||||
{
|
||||
branch: 'master',
|
||||
fallbackTags: {
|
||||
next: 'latest'
|
||||
},
|
||||
debug: !env.CI,
|
||||
githubToken: env.GH_TOKEN || env.GITHUB_TOKEN,
|
||||
githubUrl: env.GH_URL
|
||||
@@ -115,6 +112,15 @@ npmconf.load({}, (err, conf) => {
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
try {
|
||||
let shrinkwrap = JSON.parse(readFileSync('./npm-shrinkwrap.json'))
|
||||
shrinkwrap.version = release.version
|
||||
writeFileSync('./npm-shrinkwrap.json', JSON.stringify(shrinkwrap, null, 2))
|
||||
log.verbose('pre', `Wrote version ${release.version} to npm-shrinkwrap.json.`)
|
||||
} catch (e) {
|
||||
log.silly('pre', `Couldn't find npm-shrinkwrap.json.`)
|
||||
}
|
||||
|
||||
writeFileSync('./package.json', JSON.stringify(_.assign(pkg, {
|
||||
version: release.version
|
||||
}), null, 2))
|
||||
|
||||
Reference in New Issue
Block a user