1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/scripts/publish-library-npm.sh
Sebastian Malton ee11735cb7 Publish to the correct channels instead of always latest
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-17 10:46:56 -05:00

8 lines
273 B
Bash
Executable File

#!/bin/bash
./node_modules/.bin/npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
NPM_RELEASE_TAG=$(cat package.json | jq .version --raw-output | rg '.*-(?P<channel>\w+).*' -r '$channel' | cat)
npm publish --access=public --tag=${NPM_RELEASE_TAG:-latest}