Skip to content

Commit

Permalink
chore: update canary release action
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShaito committed Aug 8, 2024
1 parent ac2273e commit 5f69695
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/interfaces-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Canary Release

on: workflow_dispatch

# 1) Fill the project name to be used in NPM
env:
PROJECT_NAME: @defi-wonderland/prophet-core

# 2) Remove the following line if you wish to export your Solidity contracts and interfaces and publish them to NPM
if: false

jobs:
export:
name: Generate Interfaces And Contracts
Expand Down Expand Up @@ -41,14 +48,14 @@ jobs:
- 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 --tag canary
run: cd export/${{ env.PROJECT_NAME }}${{ env.EXPORT_NAME }} && npm publish --access public --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5f69695

Please sign in to comment.