Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
fix: update semantic-release version (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare authored Jan 28, 2018
1 parent 0a29377 commit 29b5d13
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ branches:
only:
- master
- /^greenkeeper/.*$/
before_install:
- yarn global add greenkeeper-lockfile@1
before_script:
- greenkeeper-lockfile-update
script:
- yarn run lint
- yarn run test
after_script:
- greenkeeper-lockfile-upload
- yarn start lint
- yarn start test
after_success:
- yarn run report-coverage
- yarn run semantic-release
- yarn start report-coverage
- yarn start semantic-release
notifications:
email: change
17 changes: 17 additions & 0 deletions package-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
scripts:
lint:
script: eslint index.js test/**/*.js
description: Checks for any formatting errors
test:
default:
script: nyc --reporter=lcov --reporter=text mocha test/**/*.spec.js
description: Executes the Test Suite
tdd:
script: mocha -w test/**/*.spec.js
description: Watches for changes and executes the Test Suite accordingly
report-coverage:
script: coveralls < coverage/lcov.info
description: Reports code coverage information to Coveralls
semantic-release:
script: semantic-release
description: Publishes the artifact to NPM and GitHub
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
"url": "https://github.com/salte-io/dry-parser.git"
},
"scripts": {
"lint": "eslint index.js test/**/*.js",
"test": "nyc --reporter=lcov --reporter=text mocha test/**/*.spec.js",
"tdd": "mocha -w test/**/*.spec.js",
"report-coverage": "coveralls < coverage/lcov.info",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"start": "nps",
"precommit": "remove-lockfiles"
},
"license": "MIT",
Expand All @@ -41,9 +37,10 @@
"eslint-plugin-mocha": "^4.7.0",
"husky": "^0.14.3",
"mocha": "^5.0.0",
"nps": "5.7.1",
"nyc": "^11.0.0",
"remove-lockfiles": "2.1.2",
"semantic-release": "^8.0.3",
"semantic-release": "^12.0.0",
"sinon": "^4.0.0"
},
"config": {
Expand Down

0 comments on commit 29b5d13

Please sign in to comment.