Skip to content

Commit 994fc3c

Browse files
authored
Merge pull request #101 from casper-ecosystem/fix-publish-js-client
Fix publish js client
2 parents 5914907 + 59acc40 commit 994fc3c

File tree

5 files changed

+391
-116
lines changed

5 files changed

+391
-116
lines changed

.github/workflows/ci-casper-rust-contract.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,21 @@ jobs:
4343
with:
4444
name: cep18.wasm
4545
path: target/wasm32-unknown-unknown/release
46+
4647
- name: Use Node.js ${{ matrix.node-version }}
4748
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0
4849
with:
4950
node-version: ${{ matrix.node-version }}
5051
registry-url: "https://registry.npmjs.org"
52+
5153
- name: Install
5254
working-directory: client-js
5355
run: npm install
56+
57+
- name: Generate WASMS
58+
working-directory: ./client-js
59+
run: npm run generate:wasm
60+
5461
- name: test
5562
working-directory: client-js
5663
run: npm run test:unit

.github/workflows/publish-js-client.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
working-directory: ./client-js
4141
run: npm install
4242

43+
- name: Generate WASMS
44+
working-directory: ./client-js
45+
run: npm run generate:wasm
46+
4347
- name: build
4448
working-directory: ./client-js
4549
run: npm run build

client-js/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ make build-contracts
275275
After generating the Wasm file, you can install the node modules, and the Wasm will be automatically bundled.
276276

277277
```bash
278-
npm install
278+
npm install && npm run generate:wasm
279279
```
280280

281281
## Testing
@@ -297,7 +297,7 @@ cd client-js
297297
Intall the node modules using the following:
298298

299299
```bash
300-
npm install
300+
npm install && npm run generate:wasm
301301
```
302302

303303
Run unit tests:

0 commit comments

Comments
 (0)