From 969e8c457d5e3be967c30d620ba751be2197675f Mon Sep 17 00:00:00 2001 From: Xi Zhang Date: Tue, 20 Aug 2024 08:40:30 -0400 Subject: [PATCH] wip: publish contract --- .github/workflows/publish.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8811ae11..2b1690bc 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,14 +1,7 @@ name: publish on: - push: - tags: - - clients/js/v[0-9]+.[0-9]+.[0-9]+* - - contracts/v[0-9]+.[0-9]+.[0-9]+* - - integrations/ethers-v6/v[0-9]+.[0-9]+.[0-9]+* - - integrations/hardhat/v[0-9]+.[0-9]+.[0-9]+* - - integrations/viem-v2/v[0-9]+.[0-9]+.[0-9]+* - - integrations/wagmi-v2/v[0-9]+.[0-9]+.[0-9]+* + push jobs: publish: @@ -47,7 +40,7 @@ jobs: # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable REF_NAME: ${{ github.ref_name }} run: | - echo "NPM_PACKAGE=$(echo $REF_NAME | grep -oE '(clients/js|contracts|integrations/(hardhat|wagmi-v2|viem-v2))')" >> $GITHUB_OUTPUT + echo "NPM_PACKAGE=$(echo 'contracts/v0.2.10' | grep -oE '(clients/js|contracts|integrations/(hardhat|wagmi-v2|viem-v2))')" >> $GITHUB_OUTPUT - name: Publish ${{ github.ref_name }} to NPM uses: JS-DevTools/npm-publish@v3 with: