diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c797823..fd0ed0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,16 @@ on: push: tags: ["v*"] + branches: ["main"] pull_request: - branches: ["*"] name: Build and deploy jobs: build: - if: github.event_name == 'pull_request' name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build & test run: yarn ci @@ -22,6 +21,7 @@ jobs: deploy: if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) + needs: build name: Publish runs-on: ubuntu-latest steps: