condition-snap

make sure things only the right builds on snap get published

Usage no npm install needed!

<script type="module">
  import conditionSnap from 'https://cdn.skypack.dev/condition-snap';
</script>

README

condition-snap

Checks SnapCI environment before publishing successful build using semantic-release

Inspired by condition-travis

Install and configure

npm install --save-dev condition-snap

Add the following to the package.json

"release": {
  "verifyConditions": "condition-snap"
}

This tells semantic-release plugins to use this package to verify the environment to make sure we are running on SnapCI.