diff --git a/.github/workflows/interfaces-canary.yml b/.github/workflows/interfaces-canary.yml index 36b7f72..e40ec21 100644 --- a/.github/workflows/interfaces-canary.yml +++ b/.github/workflows/interfaces-canary.yml @@ -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 @@ -41,7 +48,7 @@ jobs: - name: Export Solidity - Export Type ${{ matrix.export_type }} uses: defi-wonderland/solidity-exporter-action@v2.1.0 with: - package_name: "@defi-wonderland/prophet-core" + package_name: ${{ env.PROJECT_NAME }} out: 'out' interfaces: 'solidity/interfaces' contracts: 'solidity/contracts' @@ -49,6 +56,6 @@ jobs: 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 }}