Skip to content

Commit 2c6c41e

Browse files
committed
test: do not run build-and-release action for PRs
Signed-off-by: Jakub Freisler <[email protected]>
1 parent bd384cf commit 2c6c41e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
name: build and release
107107
runs-on: ubuntu-latest
108108
needs: [cache, lint, test]
109-
if: ${{ github.actor != 'dependabot[bot]' }}
109+
if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
110110
steps:
111111
- uses: actions/checkout@v3
112112
with:
@@ -141,7 +141,7 @@ jobs:
141141
env:
142142
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
143143
- name: release package
144-
if: ${{ success() && github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
144+
if: ${{ success() }}
145145
run: yarn release:ci
146146
env:
147147
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)