Skip to content

Commit

Permalink
Merge pull request #233 from mapzen/hanb/npm-release-hook
Browse files Browse the repository at this point in the history
hook npm release to the release process
  • Loading branch information
migurski authored Aug 17, 2016
2 parents 5011f37 + 30d70bf commit 64de66f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ deployment:
commands:
- ./deploy.sh static-dev.mapzen.com
- ./deploy.sh static-prod.mapzen.com
# npm release process
- echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_ACCOUNT" | npm login
- npm run npm-publish
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapzen.js",
"version": "0.1.0",
"version": null,
"description": "Javascript SDK for Mapzen products",
"main": "dist/mapzen.js",
"directories": {
Expand All @@ -12,6 +12,7 @@
"build-style": "node-sass --output-style compressed -o dist/ src/scss/mapzen.scss; cp -R node_modules/mapzen-scarab/src/images dist/images; cp -r node_modules/leaflet/dist/images/* dist/images/;",
"build-dev-style": "node-sass --output-style compressed -o dist/ src/scss/mapzen.scss -w; cp -R node_modules/mapzen-scarab/src/images dist/images; cp -r node_modules/leaflet/dist/images/* dist/images/;",
"dev": " watchify ./src/js/mapzen.js -o dist/mapzen.min.js -v;",
"npm-publish": "npm version from-git --no-git-tag-version; publish --on-major --on-minor --on-patch",
"build": "browserify ./src/js/mapzen.js > dist/mapzen.js; browserify -t uglifyify ./src/js/mapzen.js | uglifyjs -c > dist/mapzen.min.js; npm run-script build-style;"
},
"dependencies": {},
Expand Down Expand Up @@ -42,6 +43,7 @@
"mocha": "^2.4.5",
"node-sass": "^3.7.0",
"phantomjs-prebuilt": "^2.1.7",
"publish": "^0.6.0",
"requirejs": "^2.2.0",
"sinon": "^1.17.3",
"uglifyify": "^3.0.1",
Expand Down

0 comments on commit 64de66f

Please sign in to comment.