run:if (npx semver ${{ github.event.release.tag_name }} --range '>0.0.0'); then echo ::set-output name=NPM_LABEL::latest; else echo ::set-output name=NPM_LABEL::beta; fi;# Using the fact that semver by default considers that pre-releases do not respect stable ranges
run:if (npx semver $(node -p "require('./package.json').version") --range '>0.0.0'); then echo ::set-output name=NPM_LABEL::latest; else echo ::set-output name=NPM_LABEL::beta; fi;# Using the fact that semver by default considers that pre-releases do not respect stable ranges
- run:npm publish --tag=${NPM_LABEL} --access public