From c5139bca26bf6a2b11664bc20c8846ba26eeb56a Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 21 Jun 2017 18:07:04 +0200 Subject: Auto-upload json docs on release --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 329f033df..fc14fc1e3 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "prebuild": "npm run clean", "build": "run-p build:*:prod", "prepublish": "run-p build:umd:prod build:commonjs:dev", - "postpublish": "publish-release --assets _bundles/index.js,_bundles/index.min.js", + "postpublish": "run-s release docs:json upload_docs_json", + "release": "publish-release --assets _bundles/index.js,_bundles/index.min.js", + "upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json", "lint": "tslint src/*.ts test/*.ts", "test": "run-s clean test:commonjs", "test:umd": "./scripts/test_umd.sh", -- cgit v1.2.3 From e7152ed58cbb15f84761c5bb283b023fef441881 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 22 Jun 2017 00:07:32 +0200 Subject: Grant read permissions to all users --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fc14fc1e3..941ce400a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "prepublish": "run-p build:umd:prod build:commonjs:dev", "postpublish": "run-s release docs:json upload_docs_json", "release": "publish-release --assets _bundles/index.js,_bundles/index.min.js", - "upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json", + "upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers", "lint": "tslint src/*.ts test/*.ts", "test": "run-s clean test:commonjs", "test:umd": "./scripts/test_umd.sh", -- cgit v1.2.3 From 5001e5fc706cb8f87ab539e0e1fdb2b34846ab5d Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 22 Jun 2017 13:29:39 +0200 Subject: Set content type --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 941ce400a..d26ec6791 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "prepublish": "run-p build:umd:prod build:commonjs:dev", "postpublish": "run-s release docs:json upload_docs_json", "release": "publish-release --assets _bundles/index.js,_bundles/index.min.js", - "upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers", + "upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json", "lint": "tslint src/*.ts test/*.ts", "test": "run-s clean test:commonjs", "test:umd": "./scripts/test_umd.sh", -- cgit v1.2.3