Skip to content

Commit

Permalink
fix(Semantic release): Updated npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
TautvydasDerzinskas committed Dec 2, 2017
1 parent ba2da02 commit 0037904
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2,753 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ cache:
yarn: true
directories:
- "node_modules"
- ~/.npm
before_install:
- yarn global add gulp
- yarn global add gulp
cache:
directories:
- "node_modules"
script:
- yarn run build
- yarn run build
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
provider: script
script: npm run semantic-release
skip_cleanup: true
on:
branch: master
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
"license": "MIT",
"private": false,
"scripts": {
"build": "gulp"
"build": "gulp",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"devDependencies": {
"gulp": "3.9.1",
"gulp-sass": "3.1.0",
"gulp-sass-lint": "1.3.4",
"cz-conventional-changelog": "2.1.0"
"cz-conventional-changelog": "2.1.0",
"semantic-release": "8.2.0"
},
"config": {
"commitizen": {
Expand Down
Loading

0 comments on commit 0037904

Please sign in to comment.