Skip to content

Commit

Permalink
chore: replace standard-version with standard-release (#52)
Browse files Browse the repository at this point in the history
* chore: setup standard-releases

* doc(README): update "Publishing a new release" section
  • Loading branch information
Kocal committed Nov 7, 2018
1 parent 82e8d4c commit d160d46
Show file tree
Hide file tree
Showing 4 changed files with 2,854 additions and 369 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ dist: trusty
language: node_js
node_js: 8

notifications:
email: false

cache:
yarn: true
directories:
Expand Down Expand Up @@ -46,3 +49,12 @@ script:
- rm -fr public/css
- yarn build:dev --filter:handler sass --filter:handler css --lint
- ../ci/test_build_dev.sh

- cd ..

after_success:
- yarn travis-deploy-once "yarn semantic-release"

branches:
except:
- /^v\d+\.\d+\.\d+$/
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,4 @@ $ yarn

### Publishing a new release

```bash
$ git checkout master && git fetch && git rebase
$ yarn release # increase package.json version, update CHANGELOG.md, create a new git tag, create a new git commit
$ npm publish --access public # specify access, because scoped package are private by default
$ git push --follow-tags
```
This is automatically done by Travis and [semantic-release](https://github.com/semantic-release/semantic-release) when you merge a pull request.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"yprox-cli": "bin/yprox-cli.js"
},
"scripts": {
"release": "standard-version"
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once --pro"
},
"dependencies": {
"@babel/core": "^7.0.0",
Expand Down Expand Up @@ -54,6 +55,10 @@
"stylelint-formatter-pretty": "^1.0.3"
},
"devDependencies": {
"standard-version": "^4.4.0"
"semantic-release": "^15.10.8",
"travis-deploy-once": "^5.0.9"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit d160d46

Please sign in to comment.