Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
chore(build): fix npm-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru committed Oct 11, 2017
1 parent d469def commit 662d489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/npm-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ const url = require("url")
const path = require("path")

console.info(`CI=${process.env["CI"]}`)
console.info(`TRAVIS_BRANCH=${process.env["TRAVIS_BRANCH"]}`)
console.info(`TRAVIS_TAG=${process.env["TRAVIS_TAG"]}`)
console.info(`TRAVIS_PULL_REQUEST=${process.env["TRAVIS_PULL_REQUEST"]}`)

if (!process.env["CI"]) {
console.info("Not running on top of Travis, cannot deploy docs")
process.exit(1)
}

const branch = process.env["TRAVIS_BRANCH"]
const branch = process.env["TRAVIS_TAG"]
const m = branch.match(/^v(\d+\.\d+\.\d+)$/)
let version = m && m[1]

Expand Down

0 comments on commit 662d489

Please sign in to comment.