Fix Docker and CI builds (#773)

* Fix Docker and CI builds

* Fix indentation

* Fix release

---------

Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
Jeremy Gallant
2025-08-10 21:58:09 -04:00
committed by GitHub
co-authored by philon-
parent f04ec36faf
commit 2735c37fad
16 changed files with 342 additions and 234 deletions
+22 -17
View File
@@ -61,26 +61,31 @@ jobs:
- name: Publish packages to npm and JSR
run: |
for dir in packages/*; do
echo "Processing $dir"
if [ "$dir" != "packages/web" ]; then
echo "Processing $dir"
cd $dir
cd $dir
# Build and publish to npm if package.json exists
if [ -f "package.json" ]; then
echo "Building and publishing $dir to npm..."
pnpm run build:npm
pnpm run publish:npm || echo "npm publish failed for $dir"
# Build and publish to npm if package.json exists
if [ -f "package.json" ]; then
echo "Building and publishing $dir to npm..."
pnpm install
pnpm run build:npm
pnpm run publish:npm || echo "npm publish failed for $dir"
fi
pnpm run prepare:jsr
# Publish to JSR if jsr.json exists
if [ -f "jsr.json" ]; then
echo "Publishing $dir to jsr..."
deno publish || echo "JSR publish failed for $dir"
fi
cd - > /dev/null
else
echo "Skipping $dir"
fi
pnpm run prepare:jsr
# Publish to JSR if jsr.json exists
if [ -f "jsr.json" ]; then
echo "Publishing $dir to jsr..."
deno publish || echo "JSR publish failed for $dir"
fi
cd - > /dev/null
done