-
Notifications
You must be signed in to change notification settings - Fork 23
37 lines (31 loc) · 1.17 KB
/
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
name: Build Stencil Sass
on:
workflow_call:
# Make this a reusable workflow, no value needed
# https://docs.github.com/en/actions/using-workflows/reusing-workflows
jobs:
build_stencil_sass:
name: Build Stencil Sass
runs-on: 'ubuntu-latest'
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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: ./.github/workflows/actions/get-core-dependencies
- name: Stencil Sass Build
run: npm run build
shell: bash
- name: Unit Tests
run: npm test
shell: bash
- name: Upload Build Artifacts
uses: ./.github/workflows/actions/upload-archive
with:
name: stencil-sass
output: stencil-sass-build.zip
paths: ./dist/