Skip to content

Commit

Permalink
Trigger artifacts release jobs only on merge into 'main'. (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimkiv authored Apr 19, 2024
1 parent 7ff6fc7 commit 48d7b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ jobs:
env:
CI: true
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
# TODO: Add successful e2e smoke testing to preconditions after the https://github.com/o1-labs/zkapp-cli/issues/615 is resolved
needs: [ci, sudoku-example, tictactoe-example]
strategy:
matrix:
Expand All @@ -97,7 +99,6 @@ jobs:
npm run build --if-present
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v1
if: github.ref == 'refs/heads/main'
with:
token: ${{ secrets.NPM_TOKEN }}
env:
Expand Down

0 comments on commit 48d7b37

Please sign in to comment.