Skip to content

Commit

Permalink
refactor: updated package name on action and readme
Browse files Browse the repository at this point in the history
* feat: added comment on action conditional
  • Loading branch information
0xDiscotech committed Oct 27, 2023
1 parent 0f77c43 commit f33e20c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/solidity-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [push]
jobs:
export:
name: Generate Interfaces And Contracts
# Remove the following line if you wish to export your Solidity contracts and interfaces and publish them to NPM
if: false
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -38,14 +39,14 @@ jobs:
uses: defi-wonderland/[email protected]
with:
# Update package_name with your package name
package_name: "@defi_wonderland/solidity-exported"
package_name: "my-cool-project"
out: "out"
interfaces: "solidity/interfaces"
contracts: "solidity/contracts"
export_type: "${{ matrix.export_type }}"

- name: Publish to NPM - ${{ matrix.export_type }}
# Update `@defi_wonderland/solidity-exported` with your package name
run: cd export/@defi_wonderland/solidity-exported-${{ matrix.export_type }} && npm publish --access public
# Update `my-cool-project` with your package name
run: cd export/my-cool-project-${{ matrix.export_type }} && npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ solidity-exporter.yml
jobs:
export:
name: Generate Interfaces And Contracts
# Remove the following line if you wish to export your Solidity contracts and interfaces and publish them to NPM
if: true
...
```
Expand All @@ -132,13 +133,13 @@ solidity-exporter.yml
uses: defi-wonderland/solidity-exporter-action@1dbf5371c260add4a354e7a8d3467e5d3b9580b8
with:
# Update package_name with your package name
package_name: "@defi_wonderland/solidity-exported"
package_name: "my-cool-project"
...


- name: Publish to NPM - ${{ matrix.export_type }}
# Update `@defi_wonderland/solidity-exported` with your package name
run: cd export/@defi_wonderland/solidity-exported-${{ matrix.export_type }} && npm publish --access public
# Update `my-cool-project` with your package name
run: cd export/my-cool-project-${{ matrix.export_type }} && npm publish --access public
...
```

Expand Down

0 comments on commit f33e20c

Please sign in to comment.