diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ff8cea..7cff3b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,19 +62,15 @@ jobs: fi is-release: - # Filtering by `push` events ensures that we only release from the `main` branch, which is a - # requirement for our npm publishing environment. - # The commit author should always be 'github-actions' for releases created by the - # 'create-release-pr' workflow, so we filter by that as well to prevent accidentally - # triggering a release. - if: github.event_name == 'push' && startsWith(github.event.head_commit.author.name, 'github-actions') + name: Determine whether this is a release merge commit needs: all-jobs-pass + if: github.event_name == 'push' + runs-on: ubuntu-latest outputs: IS_RELEASE: ${{ steps.is-release.outputs.IS_RELEASE }} - runs-on: ubuntu-latest steps: - - uses: MetaMask/action-is-release@v1 - id: is-release + - id: is-release + uses: MetaMask/action-is-release@v2 publish-release: needs: is-release