Canary Release #20
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
name: Interface Exporter Action - Canary | |
on: workflow_dispatch | |
jobs: | |
generate-and-publish-interfaces: | |
name: Generate Interfaces (canary) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
typing_type: ["abi", "contracts"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: "https://registry.npmjs.org" | |
- 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 Interfaces - ${{ matrix.typing_type }} | |
uses: defi-wonderland/[email protected] | |
with: | |
out_dir: "out" | |
interfaces_dir: "solidity/interfaces" | |
contracts_dir: "solidity/contracts" | |
typing_type: "${{ matrix.typing_type }}" | |
package_name: "@defi-wonderland/prophet-core-${{ matrix.typing_type }}" | |
destination_dir: "exported-interfaces/prophet-core-${{ matrix.typing_type }}" | |
- name: Publish | |
run: cd exported-interfaces/prophet-core-${{ matrix.typing_type }} && npm publish --access public --tag canary | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |