From b6ca4835df708434be0d2ce0251423341c450e75 Mon Sep 17 00:00:00 2001 From: Stan Wohlwend Date: Mon, 1 Apr 2024 22:18:12 -0700 Subject: [PATCH] Fix GH actions build --- .github/workflows/web-demo.yaml | 10 +++++++--- package.json | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/web-demo.yaml b/.github/workflows/web-demo.yaml index 5d58057..2bf6525 100644 --- a/.github/workflows/web-demo.yaml +++ b/.github/workflows/web-demo.yaml @@ -32,14 +32,18 @@ jobs: # Automatically inject basePath in your Next.js configuration file and disable # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). static_site_generator: next - - name: Install dependencies + - name: Install root dependencies run: npm ci - - name: Build with Next.js + - name: Build root bundle run: npm run build + - name: Install web-demo dependencies + run: cd examples/web-demo && npm ci + - name: Build web-demo + run: cd examples/web-demo && npm run build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./out + path: ./examples/web-demo/out # Deployment job deploy: diff --git a/package.json b/package.json index 2714237..e22e1a4 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "dist/main.js", "types": "dist/main.d.ts", "scripts": { - "bundle": "tsup src/main.ts --sourcemap --dts", - "bundle:watch": "npm run bundle -- --watch" + "build": "tsup src/main.ts --sourcemap --dts", + "build:watch": "npm run bundle -- --watch" }, "author": "", "license": "MIT",