introduce package.json for separate *-browser package (both database and sync)

This commit is contained in:
Nikita Sivukhin
2025-09-03 17:12:34 +04:00
parent 1de647758f
commit 40dd9be201
8 changed files with 178 additions and 4 deletions

View File

@@ -172,11 +172,13 @@ jobs:
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
make publish-native
make publish-browser
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
make publish-native-next
make publish-browser-next
else
echo "Not a release, skipping publish"
fi

View File

@@ -172,11 +172,13 @@ jobs:
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
make publish-native
make publish-browser
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
make publish-native-next
make publish-browser-next
else
echo "Not a release, skipping publish"
fi