From 5ee14487de860d5dd4e646cfefd3bb7228b88187 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Tue, 16 Aug 2016 14:44:41 -0400 Subject: [PATCH 1/5] added publish to deploy process --- circle.yml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 8283a9df..92bc6d9f 100644 --- a/circle.yml +++ b/circle.yml @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index ac491b85..dd11039f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mapzen.js", - "version": "0.1.0", + "version": "0.3.0", "description": "Javascript SDK for Mapzen products", "main": "dist/mapzen.js", "directories": { @@ -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": "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": {}, From 5350f7f43f321814e7cac109a77694175412709e Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Tue, 16 Aug 2016 15:22:04 -0400 Subject: [PATCH 2/5] added publish package --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index dd11039f..0b2a9c31 100644 --- a/package.json +++ b/package.json @@ -43,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", From fda309dd6be4ad891900209533614f8005b33fc0 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Tue, 16 Aug 2016 16:35:00 -0400 Subject: [PATCH 3/5] made npm version to read lated tag --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b2a9c31..a64ffb5b 100644 --- a/package.json +++ b/package.json @@ -12,7 +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": "publish --on-major --on-minor --on-patch", + "npm-publish": "npm version from-git; 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": {}, From b4ea982fd5c045dc7a41ce7ca923df5f3781bf65 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Tue, 16 Aug 2016 16:40:12 -0400 Subject: [PATCH 4/5] set flag not to leave git commit by npm version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a64ffb5b..498dbdc1 100644 --- a/package.json +++ b/package.json @@ -12,7 +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; publish --on-major --on-minor --on-patch", + "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": {}, From 30d70bfe8f296272c2ce679793fb2050c53e60e0 Mon Sep 17 00:00:00 2001 From: Michal Migurski Date: Wed, 17 Aug 2016 16:10:49 -0400 Subject: [PATCH 5/5] Removed local version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 498dbdc1..3c7dfa95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mapzen.js", - "version": "0.3.0", + "version": null, "description": "Javascript SDK for Mapzen products", "main": "dist/mapzen.js", "directories": {