UNPKG

@eclass/semantic-release-surge

Version:

semantic-release plugin to publish a static site with surge.sh

14 lines (10 loc) 312 B
'use strict' const getError = require('./get-error') module.exports = async ({ alias = '' }) => { if (!process.env.SURGE_TOKEN) { throw getError('ENOSURGETOKEN') } if (!process.env.SURGE_ALIAS && alias === '') { throw getError('EINVALIDALIAS', { alias: process.env.SURGE_ALIAS || alias }) } }