Visitar URL original
chore: fix release to run _after_ tests · remy/nodemon@f34bfa9 · GitHub
Skip to content

Commit f34bfa9

Browse files
committed
chore: fix release to run _after_ tests
1 parent 5c03715 commit f34bfa9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ on:
55
branches: [main]
66
types:
77
- completed
8-
push:
9-
branches:
10-
- main
118

129
jobs:
1310
release:
1411
name: Release
1512
runs-on: ubuntu-latest
16-
# Added permissions block for OIDC and GitHub Releases
13+
# This line ensures the release ONLY runs if the 'tests' workflow passed
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1715
permissions:
1816
contents: write
1917
id-token: write
18+
issues: write
19+
pull-requests: write
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4 # Upgraded from v1
22+
uses: actions/checkout@v4
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:

0 commit comments

Comments
 (0)