Skip to content

Commit

Permalink
Fix GH actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Apr 2, 2024
1 parent 81ce07d commit b6ca483
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/web-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b6ca483

Please sign in to comment.