Skip to content

Commit

Permalink
fix: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Jan 29, 2019
1 parent 2713f45 commit 5bce04e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ const { promisify } = require('util');
const execa = require('execa');
const shell = require('shelljs');
const gitSemverTags = require('git-semver-tags');
const { outputBanner } = require('ci-utils');
const { setCheckRun } = require('./check-run');
const { gitSha } = require('./utils');
const promisifyGitTags = promisify(gitSemverTags);

let outputBanner, setCheckRun;

const {
let {
NOW_TOKEN,
GITHUB_TOKEN,
// if in Travis, then it's `"true"`
Expand Down Expand Up @@ -48,13 +50,6 @@ try {
process.exit(1);
}

let GITHUB_TOKEN = process.env.GITHUB_TOKEN || '';

if (GITHUB_TOKEN !== '') {
setCheckRun = require('./check-run').setCheckRun;
outputBanner = require('ci-utils').outputBanner;
}

async function handleNowDeploy(deployOutput) {
console.log(deployOutput);
const deployedUrl = deployOutput.trim();
Expand Down

0 comments on commit 5bce04e

Please sign in to comment.