Skip to content

Commit

Permalink
fix: npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
theoomoregbee committed Oct 14, 2018
1 parent fef57c7 commit 6e3e1e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ language: node_js
cache:
directories:
- ~/.npm
- node_modules
notifications:
email: false
node_js:
- '10'
- '9'
- '8'
- '6'
after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@
"lint": "ng lint",
"e2e": "ng e2e",
"build-css": "node-sass-chokidar projects/alert/ -o dist/alert/",
"packager": "npm run build:lib && npm run build-css",
"copy:readme":"cp ./README.md dist/alert/README.md",
"copy:img":"cp -r ./img/ dist/alert/img",
"packager": "npm run build:lib && npm run build-css && npm run copy:readme && npm run copy:img",
"deploy": "ng build --prod --base-href='/ngAlert/' && cp ./dist/index.html ./dist/404.html && ./node_modules/.bin/angular-cli-ghpages",
"semantic-release": "semantic-release pre && npm run packager && npm publish dist/alert --access public && semantic-release post",
"prepublishOnly": "npm run packager",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"files": [
"dist/alert"
],
"private": false,
"dependencies": {
"@angular/animations": "^6.1.0",
Expand Down Expand Up @@ -58,8 +64,8 @@
"ng-packagr": "^4.1.0",
"node-sass-chokidar": "^1.3.4",
"protractor": "~5.4.0",
"semantic-release": "7.0.2",
"travis-deploy-once": "^4.3.3",
"semantic-release": "^15.9.17",
"travis-deploy-once": "^5.0.9",
"ts-node": "~7.0.0",
"tsickle": ">=0.29.0",
"tslib": "^1.9.0",
Expand Down

0 comments on commit 6e3e1e8

Please sign in to comment.