Skip to content

Commit

Permalink
Fix script for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ytham committed Jan 18, 2024
1 parent ca1f6f8 commit 75428fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion halo2-lib-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axiom-crypto/halo2-lib-js",
"version": "0.3.0-alpha.0",
"version": "0.3.0-rc2.0",
"description": "Halo2 Javascript library",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 8 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

PKGMGR="pnpm"
if [ "$1" = "ci" ]; then
PKGMGR="npm"
fi

cd halo2-wasm
pnpm build
$PKGMGR build
cd ../halo2-lib-js
pnpm build
$PKGMGR build
2 changes: 1 addition & 1 deletion scripts/toggleLocal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "$1" = "ci" ]; then
PKGMGR="npm"
fi

./scripts/build.sh
./scripts/build.sh $CI
cd halo2-lib-js
node ./scripts/toggleLocal.js $CI
$PKGMGR install
Expand Down

0 comments on commit 75428fd

Please sign in to comment.