Skip to content

Commit

Permalink
ci(main): 馃捇 run on pushes and pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan-dutoit committed Jun 20, 2023
1 parent 90c65cd commit 8736873
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Main CI

on:
pull_request:
push:
branches:
- main

Expand Down Expand Up @@ -30,6 +31,9 @@ jobs:
yarn prepare
- name: Publish to NPM
if: ${{ github.event.pull_request.merged == true }}
if: github.repository == 'react-native-image-picker/react-native-image-picker' && github.ref == 'refs/heads/main'
run: |
yarn ci:publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8736873

Please sign in to comment.