Skip to content

Commit

Permalink
ci(GitHub): run the release jobs on the main branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Sep 4, 2022
1 parent bf6cb3d commit 977dc7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: npm publish --dry-run

release:
if: ${{ github.ref == 'refs/heads/main' }}

needs: [test]

runs-on: ubuntu-latest
Expand Down

0 comments on commit 977dc7f

Please sign in to comment.