github: Fix JavaScript publish pipeline

This commit is contained in:
Pekka Enberg
2025-06-27 15:41:36 +03:00
parent f9685515e4
commit 280587eb92

View File

@@ -220,11 +220,11 @@ jobs:
- name: Publish
run: |
npm config set provenance true
if git log -1 --pretty=%B | grep "^Limbo [0-9]\+\.[0-9]\+\.[0-9]\+$";
if git log -1 --pretty=%B | grep "^Turso [0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
elif git log -1 --pretty=%B | grep "^Limbo [0-9]\+\.[0-9]\+\.[0-9]\+";
elif git log -1 --pretty=%B | grep "^Turso [0-9]\+\.[0-9]\+\.[0-9]\+";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --tag next --access public