Skip to content

Commit

Permalink
fix: Travis configuration
Browse files Browse the repository at this point in the history
Trying to fix the semantic-release configuration.

fix #2
  • Loading branch information
Ziv-Barber committed Oct 8, 2018
1 parent 2cd58b6 commit f8ffb64
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
coverage
flow-typed
dist
doc
Expand Down
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[ignore]
.*/node_modules/npm/node_modules/config-chain/.*
.*/coverage/.*
.*/dist/.*


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ This project is using [semantic-release](https://github.com/semantic-release/sem
Allow doing npm publish automatically by [semantic-release](https://github.com/semantic-release/semantic-release):

- You need a npm token (see [here](https://docs.npmjs.com/getting-started/working_with_tokens#how-to-create-new-tokens)) and add it as the NPM_TOKEN environment variable to Travis-CI like you did with the GH_TOKEN for github.
- Update the release section in package.json and add '@semantic-release/npm' to both 'publishConfig' and 'verifyConditions'.
- Update the release section in package.json and add '@semantic-release/npm' to both 'prepare', 'publish' and 'verifyConditions'.

<a name="features"></a>
## Features: ##
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
"dev": "npx rollup -c --environment BUILD:development",
"dev:watch": "npx rollup -c --environment BUILD:development -w",
"esdoc": "npx esdoc",
"flow": "npx flow",
"lint": "better-npm-run lint",
"release": "npx run-s test release:sr",
"release": "npx run-s release:check release:sr",
"release:check": "npx run-s clean build test:badges flow lint",
"release:sr": "npx semantic-release"
},
"keywords": [
Expand Down Expand Up @@ -107,9 +109,11 @@
}
},
"release": {
"publishConfig": [
"prepare": [],
"publish": [
"@semantic-release/github"
],
"npmPublish": false,
"verifyConditions": [
"@semantic-release/github"
]
Expand Down

0 comments on commit f8ffb64

Please sign in to comment.