Skip to content

Meta: ensure the IPR check runs on the PR head, not main #3052

Meta: ensure the IPR check runs on the PR head, not main

Meta: ensure the IPR check runs on the PR head, not main #3052

Workflow file for this run

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/