-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (44 loc) · 1.23 KB
/
install-build.yml
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
37
38
39
40
41
42
43
44
45
46
47
name: Install and Build Workflow
on:
workflow_call:
inputs:
os:
required: true
type: string
node-version:
required: true
type: string
build-script:
required: false
type: string
default: 'build'
analyse-component-bundles:
type: boolean
required: false
default: false
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
jobs:
install-build:
permissions:
contents: read
runs-on: ${{ inputs.os }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Repo
uses: ./.github/actions/setup-repo
with:
node-version: ${{ inputs.node-version }}
os: ${{ inputs.os }}
- name: Build Packages
uses: ./.github/actions/run-script
with:
script-name: ${{ inputs.build-script }}
- name: Analyse Component Bundle Sizes
if: inputs.analyse-component-bundles
run: yarn analyse-component-bundles
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
CI_BRANCH_BASE: 'main'