-
-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (27 loc) · 1.11 KB
/
build.yml
File metadata and controls
34 lines (27 loc) · 1.11 KB
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
name: Build Stencil Store
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
build_stencil_store:
name: Build Stencil Store
runs-on: 'ubuntu-latest'
steps:
- name: 📥 Checkout Code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
# the pull_request_target event will consider the HEAD of `main` to be the SHA to use.
# attempt to use the SHA associated with a pull request and fallback to HEAD of `main`
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.number) || '' }}
persist-credentials: false
- name: 🕸️ Get Core Dependencies
uses: stenciljs/.github/actions/get-core-dependencies@main
- name: 📦 Stencil Store Build
run: npm run build
shell: bash
- name: 🧪 Unit Tests
run: npm test
shell: bash
- name: 📤 Upload Build Artifacts
uses: stenciljs/.github/actions/upload-archive@main