ci: use NOW_TOKEN on travis to deploy
This commit is contained in:
Родитель
6b29c325b2
Коммит
bdaf564e33
|
@ -10,6 +10,6 @@ else
|
||||||
echo "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH"
|
echo "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH"
|
||||||
if [[ "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH" = "yarn-true-master" ]]; then
|
if [[ "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH" = "yarn-true-master" ]]; then
|
||||||
npm i -g now
|
npm i -g now
|
||||||
bolt docs:deploy
|
bolt docs:deploy:ci
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
"docs:generate": "bolt ws exec -- node_modules/.bin/typedoc --out doc --excludeExternals --ignoreCompilerErrors --mode file --excludePrivate --excludeProtected --hideGenerator",
|
"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: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": "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",
|
"lint": "ts-node tools/link-ts.ts && bolt ws exec -- node_modules/.bin/tslint src/**/*.ts test/**/*.ts",
|
||||||
"test": "bolt ws run test"
|
"test": "bolt ws run test"
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче