Skip to content

Commit 5742954

Browse files
committed
fix(workflow): always run it but release only in the main branch
1 parent 0452dfb commit 5742954

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: release sqlite-js
22
on:
33
push:
4-
branches:
5-
- main
64

75
permissions:
86
contents: write
@@ -121,6 +119,7 @@ jobs:
121119
runs-on: ubuntu-latest
122120
name: release
123121
needs: build
122+
if: github.ref == 'refs/heads/main'
124123

125124
env:
126125
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)