Skip to content

Commit 0c1660a

Browse files
committed
feat: use npm for compatibility
1 parent 6e6f29f commit 0c1660a

File tree

2 files changed

+13
-20
lines changed

2 files changed

+13
-20
lines changed

.github/workflows/solidity.yml

+11-14
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
foundry:
6666
image: ghcr.io/settlemint/btp-anvil-test-node:latest
6767
ports:
68-
- '8545:8545'
68+
- "8545:8545"
6969
name: Build Set
7070
#runs-on: ubuntu-latest
7171
runs-on: namespace-profile-btp-scs
@@ -101,10 +101,8 @@ jobs:
101101
with:
102102
node-version: 22
103103

104-
- uses: oven-sh/setup-bun@v2
105-
106104
- name: Install Node dependencies
107-
run: bun install
105+
run: npm install
108106

109107
- name: Run Forge build
110108
run: |
@@ -240,26 +238,26 @@ jobs:
240238
if: ${{ github.event_name == 'pull_request' }}
241239
uses: taoliujun/action-unique-comment@v1
242240
with:
243-
uniqueIdentifier: ${{ github.workflow }}
244-
body: |
245-
# 📦 Packages
246-
| Package | Install |
247-
| ------- | -------------------- |
248-
| React | `bun add @${{ github.repository_owner }}/${{ github.repository }}@${{ env.VERSION }}` |
241+
uniqueIdentifier: ${{ github.workflow }}
242+
body: |
243+
# 📦 Packages
244+
| Package | Install |
245+
| ------- | -------------------- |
246+
| Template Set | `bun add @${{ github.repository_owner }}/${{ github.repository }}@${{ env.VERSION }}` |
249247
250248
- uses: stefanzweifel/git-auto-commit-action@v5
251249
if: env.TAG == 'latest' && github.repository != 'settlemint/solidity-predeployed'
252250
with:
253251
commit_message: "chore: update package versions [skip ci]"
254252
branch: main
255-
file_pattern: 'package.json README.md'
253+
file_pattern: "package.json README.md"
256254

257255
- uses: stefanzweifel/git-auto-commit-action@v5
258256
if: env.TAG == 'latest' && github.repository == 'settlemint/solidity-predeployed'
259257
with:
260258
commit_message: "chore: update package versions [skip ci]"
261259
branch: main
262-
file_pattern: 'package.json README.md all_allocations.json'
260+
file_pattern: "package.json README.md all_allocations.json"
263261

264262
- name: Set up QEMU
265263
uses: docker/setup-qemu-action@v3
@@ -305,7 +303,6 @@ jobs:
305303
labels: ${{ steps.docker_meta.outputs.labels }}
306304
no-cache: true
307305

308-
309306
- name: Sign the images with GitHub OIDC Token
310307
env:
311308
DIGEST: ${{ steps.build-and-push.outputs.digest }}
@@ -315,4 +312,4 @@ jobs:
315312
for tag in ${TAGS}; do
316313
images+="${tag}@${DIGEST} "
317314
done
318-
cosign sign --yes ${images}
315+
cosign sign --yes ${images}

Dockerfile

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
FROM node:22.14.0 AS build
22

3-
COPY --from=oven/bun:1.2.5-debian --chmod=0777 /usr/local/bin/bun /bin/bun
4-
ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
5-
ENV BUN_INSTALL_BIN=/bin
6-
73
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
84
export DEBIAN_FRONTEND=noninteractive && \
95
apt-get update && \
@@ -23,10 +19,10 @@ WORKDIR /usecase
2319

2420
USER root
2521

26-
RUN bun install --save-text-lockfile
22+
RUN npm install
2723
RUN if [ -f "scripts/decompress.js" ]; then bun scripts/decompress.js; fi
2824
RUN forge build
29-
RUN bun hardhat compile
25+
RUN npx hardhat compile
3026

3127
FROM busybox:1.37.0
3228

0 commit comments

Comments
 (0)