Meta: ensure the IPR check runs on the PR head, not main #3052
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Preview | |
on: [pull_request] | |
jobs: | |
build: | |
name: 'build PR preview' | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ljharb/actions/node/install@dfd9796898850cf07630d1bd4053a7c9a379e90f | |
name: 'nvm install lts/* && npm ci --no-audit' | |
env: | |
NPM_CONFIG_AUDIT: false | |
with: | |
node-version: lts/* | |
use-npm-ci: true | |
- run: npm run build-only | |
- run: node scripts/insert_snapshot_warning | |
- run: echo ${{ github.event.number }} > out/pr.txt | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: out | |
path: out/ |