Skip to content

Commit

Permalink
fix: Publish Js artifact as executable
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Feb 15, 2022
1 parent 077088d commit 29a9a99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
uses: actions/upload-artifact@master
with:
name: bundled
path: _build/default/js/QueryJsonJs.bc.js
path: _build/default/js/Js.bc.js

# Cleanup build cache if dependencies have changed
- name: Clean build cache
Expand Down
1 change: 1 addition & 0 deletions js/Js.re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let run = QueryJsonJs.run
7 changes: 7 additions & 0 deletions js/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
(library
(name QueryJsonJs)
(public_name query-json-js)
(modules QueryJsonJs)
(libraries console.lib query-json.core yojson cmdliner js_of_ocaml))

(executable
(name Js)
(modes js)
(modules Js)
(libraries query-json-js console.lib yojson cmdliner js_of_ocaml))

0 comments on commit 29a9a99

Please sign in to comment.