-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update
prophet-core
dependency and `solidity-exporter-action…
…` workflows (#57) * feat: update prophet core * build: update Prophet dependency * refactor: lint * build: update Prophet dependency * ci: update solidity exporter action workflows * refactor: lint --------- Co-authored-by: 0xJabberwock <[email protected]>
- Loading branch information
1 parent
1197c32
commit e52f8cc
Showing
66 changed files
with
439 additions
and
533 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Canary Release | ||
|
||
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-modules' | ||
EXPORT_NAME: ${{ matrix.export_type == 'interfaces' && '-interfaces' || '' }} | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
node-version: 20.x | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build project and generate out directory | ||
run: yarn build | ||
|
||
- 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 }} | ||
uses: defi-wonderland/[email protected] | ||
with: | ||
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/${{ env.PROJECT_NAME }}${{ env.EXPORT_NAME }} && npm publish --access public --tag canary | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
name: Production Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
export_type: ['interfaces', 'all'] | ||
|
||
env: | ||
PROJECT_NAME: '@defi-wonderland/prophet-modules' | ||
EXPORT_NAME: ${{ matrix.export_type == 'interfaces' && '-interfaces' || '' }} | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
node-version: 20.x | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Build project and generate out directory | ||
run: yarn build | ||
|
||
- name: Export Solidity - Export Type ${{ matrix.export_type }} | ||
uses: defi-wonderland/[email protected] | ||
with: | ||
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/${{ env.PROJECT_NAME }}${{ env.EXPORT_NAME }} && npm publish --access public --tag latest | ||
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
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
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
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
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
Oops, something went wrong.