From aef39ef6fb38129effb8c236c13a6f5d5edbd0bd Mon Sep 17 00:00:00 2001 From: "frankind.eth" Date: Sat, 23 Mar 2024 15:14:38 -0300 Subject: [PATCH] fix: update release workflow --- .github/workflows/release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5b3cdd..8002c56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,17 @@ jobs: release: runs-on: ubuntu-latest steps: + - name: Check if changes were made into ens-utils package + id: check_changes + run: | + package_changed=false + git diff --diff-filter=d --name-only HEAD HEAD~1 | grep -q "packages/ens-utils" && package_changed=true + echo "package_changed=${{ env.package_changed }}" >> $GITHUB_ENV + if: env.package_changed == 'false' + run: break + else: + run: cd packages/ens-utils + - uses: actions/checkout@v2 - name: Setup pnpm uses: pnpm/action-setup@v3 @@ -27,8 +38,9 @@ jobs: - run: pnpm build - run: pnpm test - run: pnpm audit signatures + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release + run: npx semantic-release