-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
25 lines (23 loc) · 782 Bytes
/
action.yml
File metadata and controls
25 lines (23 loc) · 782 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
name: Install Dependencies
description: Install project dependencies and optionally build the application
inputs:
build:
description: Whether to execute build
required: false
# Workaround: https://github.com/actions/runner/issues/2238
default: 'false'
runs:
using: 'composite'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version-file: .bun-version
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version-file: .node-version
- run: bun install --frozen-lockfile
shell: bash
- if: ${{ inputs.build == 'true' }}
run: bun run build
shell: bash