Publish to the correct channels instead of always latest

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-17 10:46:56 -05:00
1 parent b2ac628d05
commit ee11735cb7
5 files changed
+21 -9

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#!/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)
cd packages/extensions && npm publish --access=public --tag=${NPM_RELEASE_TAG:-latest} && git restore package.json
+7
View File
@@ -0,0 +1,7 @@
#!/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}