-
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.
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 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 |
---|---|---|
|
@@ -5,12 +5,14 @@ on: workflow_dispatch | |
jobs: | ||
export: | ||
name: Generate Interfaces And Contracts | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
export_type: ['interfaces', 'all'] | ||
|
||
env: | ||
PROJECT_NAME: '@defi-wonderland/prophet-core' | ||
EXPORT_NAME: ${{ matrix.export_type == 'interfaces' && '-interfaces' || '' }} | ||
|
||
steps: | ||
|
@@ -38,17 +40,17 @@ jobs: | |
- name: Update version | ||
run: yarn version --new-version "0.0.0-${GITHUB_SHA::8}" --no-git-tag-version | ||
|
||
- name: Export Solidity - Export Type: ${{ matrix.export_type }} | ||
- name: Export Solidity - Export Type ${{ matrix.export_type }} | ||
uses: defi-wonderland/[email protected] | ||
with: | ||
package_name: "@defi-wonderland/prophet-core" | ||
package_name: ${{ env.PROJECT_NAME }} | ||
out: 'out' | ||
interfaces: 'solidity/interfaces' | ||
contracts: 'solidity/contracts' | ||
libraries: "solidity/libraries" | ||
export_type: '${{ matrix.export_type }}' | ||
|
||
- name: Publish to NPM - Export Type: ${{ matrix.export_type }} | ||
run: cd export/@defi-wonderland/prophet-core${{ env.EXPORT_NAME }} && npm publish --access public | ||
- name: Publish to NPM - Export Type ${{ matrix.export_type }} | ||
run: cd export/${{ env.PROJECT_NAME }}${{ env.EXPORT_NAME }} && npm publish --access public | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |