Skip to content

Commit 20218e1

Browse files
authored
Update publish-release.yml
1 parent ce72629 commit 20218e1

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

workflow-templates/publish-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
types: [closed]
66

77
jobs:
8-
release_merge:
8+
publish-release:
9+
permissions:
10+
contents: write
911
if: |
1012
github.event.pull_request.merged == true &&
11-
startsWith(github.event.pull_request.head.ref, 'release-v')
13+
startsWith(github.event.pull_request.head.ref, 'release/')
1214
runs-on: ubuntu-latest
1315
steps:
1416
- uses: actions/checkout@v2
@@ -18,6 +20,8 @@ jobs:
1820
- uses: actions/setup-node@v2
1921
with:
2022
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
21-
- uses: MetaMask/action-publish-release@0.0.2
23+
- uses: MetaMask/action-publish-release@v1
2224
env:
2325
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
release-branch-prefix: release/

0 commit comments

Comments
 (0)