@eclass/semantic-release-docker
Version:
semantic-release plugin to tag and push docker images
20 lines (17 loc) • 372 B
JavaScript
/**
* @typedef {import('./types').Registry} Registry
*/
/**
* @param {string } tag -.
* @param {Registry} registry -.
* @returns {boolean} -.
* @example
* isTagPushAllowed(tag, registry)
*/
const isTagPushAllowed = (tag, registry) => {
if (!registry.skipTags) {
return true
}
return !registry.skipTags.includes(tag)
}
module.exports = isTagPushAllowed