diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 72421852..270f8342 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -7,6 +7,8 @@ on: branches: - dev pull_request: + branches-ignore: + - main types: - opened jobs: diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 0f4bf1d7..2fe27c70 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -3,7 +3,7 @@ env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} on: - push: + pull_request: branches: - main jobs: @@ -13,6 +13,8 @@ jobs: - uses: actions/checkout@v2 - name: Install Vercel CLI run: npm install --global vercel@latest + - name: Install pnpm + run: npm install -g pnpm - name: Pull Vercel Environment Information run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts