summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2019-08-14 13:02:43 -0400
committerKasra Bigdeli <[email protected]>2019-08-14 13:02:43 -0400
commitbe8735e0d3c175e2b0e001cf824e003254d25bc1 (patch)
tree34c2124d3d2a5b9686ed7413902aa9ce50503dc2
parent340f984c8fe884c896bb3f1dd8c607843e8cdabc (diff)
downloadcaprover-one-click-apps-be8735e0d3c175e2b0e001cf824e003254d25bc1.tar.gz
caprover-one-click-apps-be8735e0d3c175e2b0e001cf824e003254d25bc1.zip
Fixed publish
-rw-r--r--npm_run_puplish.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/npm_run_puplish.js b/npm_run_puplish.js
index 91cb03f..243c3c0 100644
--- a/npm_run_puplish.js
+++ b/npm_run_puplish.js
@@ -1,5 +1,5 @@
/*jshint esversion: 6 */
- const ghpages = require('gh-pages');
+ const ghPages = require('gh-pages');
const path = require('path');
const fs = require('fs-extra')
@@ -47,13 +47,12 @@
return copyVersion(2)
})
.then(function () {
-
- // ghpages.publish('public', function (err) {
- // if (err)
- // console.log(err);
- // else
- // console.log('Built and deployed successfully');
- // });
+ ghPages.publish('public', function (err) {
+ if (err)
+ console.log(err);
+ else
+ console.log('Built and deployed successfully');
+ });
})
.catch(function (err) {
console.error(err)