-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 937 Bytes
/
build.yml
File metadata and controls
36 lines (30 loc) · 937 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
35
36
name: Build
# This workflow builds the storefront to validate that the code compiles correctly.
# It runs on pull requests and pushes to help catch build errors early.
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches: ['*']
push:
branches: ['*']
workflow_dispatch:
env:
NODE_VERSION: '24'
PNPM_VERSION: '10.28.0'
jobs:
build:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
) }}
name: Run Build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Bundle
uses: './.github/actions/build-bundle'
with:
node-version: ${{ env.NODE_VERSION }}
pnpm-version: ${{ env.PNPM_VERSION }}