Skip to content

Commit

Permalink
Merge pull request casper-ecosystem#101 from casper-ecosystem/fix-pub…
Browse files Browse the repository at this point in the history
…lish-js-client

Fix publish js client
  • Loading branch information
hoffmannjan authored Jun 16, 2023
2 parents 5914907 + 59acc40 commit 994fc3c
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 116 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-casper-rust-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,21 @@ jobs:
with:
name: cep18.wasm
path: target/wasm32-unknown-unknown/release

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Install
working-directory: client-js
run: npm install

- name: Generate WASMS
working-directory: ./client-js
run: npm run generate:wasm

- name: test
working-directory: client-js
run: npm run test:unit
4 changes: 4 additions & 0 deletions .github/workflows/publish-js-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
working-directory: ./client-js
run: npm install

- name: Generate WASMS
working-directory: ./client-js
run: npm run generate:wasm

- name: build
working-directory: ./client-js
run: npm run build
Expand Down
4 changes: 2 additions & 2 deletions client-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ make build-contracts
After generating the Wasm file, you can install the node modules, and the Wasm will be automatically bundled.

```bash
npm install
npm install && npm run generate:wasm
```

## Testing
Expand All @@ -297,7 +297,7 @@ cd client-js
Intall the node modules using the following:

```bash
npm install
npm install && npm run generate:wasm
```

Run unit tests:
Expand Down
Loading

0 comments on commit 994fc3c

Please sign in to comment.