-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 823 Bytes
/
build-pr.yml
File metadata and controls
34 lines (32 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build PR
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/build-pr.yml'
- 'src/**/*'
- 'gatsby-browser.tsx'
- 'gatsby-config.ts'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- '.nvmrc'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build Setup
uses: ./.github/actions/build-setup
- name: Lint check
run: npm run lint-check
- name: Check types
run: npm run check-types
- name: create .env.production file
run: |
touch .env.production
echo GATSBY_GA_MEASUREMENT_ID=${{ secrets.TEST_GA_MEASUREMENT_ID }} >> .env.production
cat .env.production
- name: Build site
run: npm run build