-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add solidity workflow and fix js workflow (#198)
* fix: update sdk scripts to use plain npm * fix: set registry * add solidity workflow
- Loading branch information
Showing
3 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish Express Relay Solidity SDK | ||
|
||
on: | ||
push: | ||
tags: | ||
- "solidity-v*" | ||
jobs: | ||
publish-solidity: | ||
name: Publish Solidity SDK Package to NPM | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "package.json" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/[email protected] | ||
with: | ||
version: nightly | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: sdk/solidity/ | ||
|
||
- name: Generate ABIs | ||
run: npm run generate-abi | ||
working-directory: sdk/solidity/ | ||
|
||
- name: Check ABIs | ||
run: npm run check-abi | ||
working-directory: sdk/solidity/ | ||
|
||
- name: Publish to npm | ||
run: npm publish | ||
working-directory: sdk/solidity/ | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters