-
Notifications
You must be signed in to change notification settings - Fork 69
36 lines (35 loc) · 1.11 KB
/
bundle.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
name: Bundle
on:
workflow_call:
inputs:
branch:
description: 'Set the branch to bundle core'
required: false
type: string
nodeVersion:
description: version of node to use. It's better to specify latest, lts/* or lts/-1 than to hardode numbers
type: string
default: lts/*
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.nodeVersion }}
registry-url: 'https://registry.npmjs.org'
cache: yarn
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
- name: Update for Bundling
run: |
node scripts/updateForBundling.js
- name: Generate Bundle and Check if there is any dependency that needs to be externalized and is not in the whitelist.
run: |
node scripts/bundleWithCheck.js
- name: Post Bundling Update
run: |
node scripts/postBundlingUpdate.js