From bdaf564e337cf4d09d4d00352ba449f3c6ef784c Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 4 Jul 2018 14:02:10 +1000 Subject: [PATCH] ci: use NOW_TOKEN on travis to deploy --- ci/script.sh | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/script.sh b/ci/script.sh index ca1bc493e..cdf59b24b 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -10,6 +10,6 @@ else echo "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH" if [[ "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH" = "yarn-true-master" ]]; then npm i -g now - bolt docs:deploy + bolt docs:deploy:ci fi fi diff --git a/package.json b/package.json index 71f370515..e9a455eac 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "docs:generate": "bolt ws exec -- node_modules/.bin/typedoc --out doc --excludeExternals --ignoreCompilerErrors --mode file --excludePrivate --excludeProtected --hideGenerator", "docs:position": "ts-node tools/position-docs.ts", "docs:deploy": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now && now alias", + "docs:deploy:ci": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now --token $NOW_TOKEN && now alias --token $NOW_TOKEN", "lint": "ts-node tools/link-ts.ts && bolt ws exec -- node_modules/.bin/tslint src/**/*.ts test/**/*.ts", "test": "bolt ws run test" },