ci: fix deploy.js script to use import

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-09-09 18:04:44 +02:00 committed by fryorcraken.eth
parent fa43c0ce05
commit 91fbcb5fb9
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
const { promisify } = require('util') import { promisify } from 'util'
const { publish } = require('gh-pages') import { publish } from 'gh-pages'
const ghpublish = promisify(publish)
/* fix for "Unhandled promise rejections" */ /* fix for "Unhandled promise rejections" */
process.on('unhandledRejection', err => { throw err }) process.on('unhandledRejection', err => { throw err })
const ghpublish = promisify(publish)
const Args = process.argv.slice(2) const Args = process.argv.slice(2)
const USE_HTTPS = Args[0] && Args[0].toUpperCase() === 'HTTPS' const USE_HTTPS = Args[0] && Args[0].toUpperCase() === 'HTTPS'