File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 8181 path : |
8282 ./node_modules
8383 ~/.npm
84+ ~/.bun/install/cache
8485
8586 - name : Install Foundry
8687 uses : foundry-rs/foundry-toolchain@v1
@@ -89,10 +90,12 @@ jobs:
8990
9091 - uses : actions/setup-node@v4
9192 with :
92- node-version : 20
93+ node-version : 22
94+
95+ - uses : oven-sh/setup-bun@v2
9396
9497 - name : Install Node dependencies
95- run : npm install
98+ run : bun install
9699
97100 - name : Install circom
98101 if : github.repository == 'settlemint/solidity-zeto'
@@ -106,15 +109,15 @@ jobs:
106109 - name : Install snarkjs
107110 if : github.repository == 'settlemint/solidity-zeto'
108111 run : |
109- npm install -g snarkjs@latest
112+ bun install -g snarkjs@latest
110113
111114 - name : Install zeto
112115 if : github.repository == 'settlemint/solidity-zeto'
113116 run : |
114117 git clone https://github.com/victoryeo/zeto.git
115118 cd zeto
116119 cd zkp/circuits
117- npm install
120+ bun install
118121 cd ..
119122 circom circuits/anon_enc_nullifier.circom --output ./js/lib --sym --wasm
120123 circom circuits/anon_enc.circom --output ./js/lib --sym --wasm
@@ -368,7 +371,7 @@ jobs:
368371 # 📦 Packages
369372 | Package | Install |
370373 | ------- | -------------------- |
371- | React | `npm i @${{ github.repository_owner }}/${{ github.repository }}@${{ env.VERSION }}` |
374+ | React | `bun add @${{ github.repository_owner }}/${{ github.repository }}@${{ env.VERSION }}` |
372375
373376 - uses : stefanzweifel/git-auto-commit-action@v5
374377 if : ${{ env.TAG == 'latest' }}
Original file line number Diff line number Diff line change 11FROM node:22.11.0 AS build
22
3+ COPY --from=oven/bun:1.1.34-debian --chmod=0777 /usr/local/bin/bun /bin/bun
4+ ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
5+ ENV BUN_INSTALL_BIN=/bin
6+
37RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
48 export DEBIAN_FRONTEND=noninteractive && \
59 apt-get update && \
@@ -19,9 +23,9 @@ WORKDIR /usecase
1923
2024USER root
2125
22- RUN npm install
26+ RUN bun install
2327RUN forge build
24- RUN npx hardhat compile
28+ RUN bunx hardhat compile
2529
2630FROM busybox:1.37.0
2731
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ forge init my-project --template settlemint/solidity-token-erc721a
2121Or if you want to use this set as a dependency of your own,
2222
2323``` shell
24- npm install @settlemint/solidity-token-erc721a
24+ bun install @settlemint/solidity-token-erc721a
2525```
2626
2727## DX: Foundry & Hardhat hybrid
Original file line number Diff line number Diff line change 5050 "overrides" : {
5151 "@graphprotocol/graph-cli" : " 0.88.0" ,
5252 "@graphprotocol/graph-ts" : " 0.35.1"
53- }
53+ },
54+ "trustedDependencies" : [
55+ " protobufjs"
56+ ]
5457}
You can’t perform that action at this time.
0 commit comments