-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 953 Bytes
/
build.yml
File metadata and controls
39 lines (32 loc) · 953 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
37
38
39
name: Install
on:
workflow_call:
inputs:
node-version:
default: 20.x
required: false
type: string
jobs:
install:
name: 'Install dependecies and build types'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ inputs.node-version }}
check-latest: true
- name: Build Cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: build-cache
with:
path: |
./dist
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build