name: 'PR validation pipeline' on: pull_request: branches: - main workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: 'Use Node.js 16.x' uses: actions/setup-node@v3 with: node-version: '16.x' cache: 'yarn' - run: yarn install - run: yarn build - name: 'Drop artifacts' uses: actions/upload-artifact@v3.0.0 with: name: 'Build' path: 'build'