Skip to content

Commit

Permalink
wip: publish contract
Browse files Browse the repository at this point in the history
  • Loading branch information
aefhm committed Aug 20, 2024
1 parent b4270eb commit 969e8c4
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 969e8c4

Please sign in to comment.