Skip to content

Commit

Permalink
fix: npm install before dune build
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Feb 7, 2024
1 parent 0e33a5c commit 8675d08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
node-version: 18
cache: 'npm'
- run: npm install
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
Expand All @@ -37,8 +38,6 @@ jobs:
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune test
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Enter a description of your app here",
"scripts": {
"build": "dune build",
"build": "dune build && vite build _build/default",
"dev": "dune build && concurrently 'npm:vite-dev' 'npm:dune-watch'",
"dune-watch": "dune build -w",
"serve": "dune build && vite preview --host",
Expand Down

0 comments on commit 8675d08

Please sign in to comment.