Skip to content

Commit

Permalink
chore(ci): fix NPM publish phase
Browse files Browse the repository at this point in the history
- Remove `prepare` script that was executed just before NPM publish and was in error.
- Run `snyk-protec` script at the beginning of the pipeline instead of juste before publishing to NPM.
  • Loading branch information
tverhoken committed Oct 30, 2020
1 parent 2b28af5 commit b4170af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ branches:
env:
- CAN_PUBLISH=$(sh ./.can-publish.sh)
script:
- npm run snyk-protect
- npm run lint
- npm run test:ci
- npm run build
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"test:ci": "npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test:watch": "jest --watch",
"release": "git add dist && standard-version --commit-all --message=\"chore(release): %s [ci skip]\" && git push https://${GITHUB_TOKEN}@github.com/tverhoken/stryker-diff-runner.git --follow-tags $(git rev-parse --abbrev-ref HEAD):master",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect"
"snyk-protect": "snyk protect"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b4170af

Please sign in to comment.