Skip to content

Commit 1cdbc3b

Browse files
authored
Merge pull request #78 from MetaMask/mich-update-release-action
chore: update release action
2 parents d72373d + 39a48a0 commit 1cdbc3b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,15 @@ jobs:
6262
fi
6363
6464
is-release:
65-
# Filtering by `push` events ensures that we only release from the `main` branch, which is a
66-
# requirement for our npm publishing environment.
67-
# The commit author should always be 'github-actions' for releases created by the
68-
# 'create-release-pr' workflow, so we filter by that as well to prevent accidentally
69-
# triggering a release.
70-
if: github.event_name == 'push' && startsWith(github.event.head_commit.author.name, 'github-actions')
65+
name: Determine whether this is a release merge commit
7166
needs: all-jobs-pass
67+
if: github.event_name == 'push'
68+
runs-on: ubuntu-latest
7269
outputs:
7370
IS_RELEASE: ${{ steps.is-release.outputs.IS_RELEASE }}
74-
runs-on: ubuntu-latest
7571
steps:
76-
- uses: MetaMask/action-is-release@v1
77-
id: is-release
72+
- id: is-release
73+
uses: MetaMask/action-is-release@v2
7874

7975
publish-release:
8076
needs: is-release

0 commit comments

Comments
 (0)