pr-open.yml (600B)
1 name: Build Pull request 2 on: 3 pull_request: 4 types: [opened, synchronize, reopened] 5 env: 6 NEXT_PUBLIC_TINA_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_TINA_CLIENT_ID }} 7 TINA_TOKEN: ${{ secrets.TINA_TOKEN }} 8 NEXT_PUBLIC_TINA_BRANCH: ${{ github.head_ref }} 9 jobs: 10 build: 11 runs-on: ubuntu-latest 12 strategy: 13 matrix: 14 node: ["18"] 15 name: Node ${{ matrix.node }} sample 16 steps: 17 - uses: actions/checkout@v3 18 - name: Setup node 19 uses: actions/setup-node@v3 20 with: 21 node-version: ${{ matrix.node }} 22 - run: yarn install 23 - run: yarn build