Skip to content

Commit 305bd5e

Browse files
committed
Fix deployment script
1 parent 01a7392 commit 305bd5e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"build": "./node_modules/.bin/async-to-gen src --out-dir dist",
2323
"prepublish": "npm run build",
2424
"dev": "NODE_ENV=development nodemon --config package.json --exec async-node src/index.js",
25-
"test": "jest"
25+
"test": "jest",
26+
"test-now-deployment": "curl --fail $NOW_URL/test?inc=false"
2627
},
2728
"jest": {
2829
"collectCoverageFrom": [

scripts/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
echo "Installing now-pipeline"
2-
npm install -g now-pipeline
2+
npm install -g MiniGod/now-pipeline#state-building
33

44
echo "Prune old instances"
55
now-pipeline-prune
66

77
echo "Deploy and alias new instance"
8-
now-pipeline --test 'curl --fail $NOW_URL/test?inc=false' --alias demo.micro-analytics.io
8+
now-pipeline --alias demo.micro-analytics.io --test "npm run test-now-deployment"
99

0 commit comments

Comments
 (0)