Repository navigation
69 lines (66 loc) · 1.84 KB
/
Copy pathsetup.yml
File metadata and controls
69 lines (66 loc) · 1.84 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: setup
# Install job. A later job cannot see this workspace, so test and image call
# the setup action in their own job instead of depending on this one.
on:
workflow_call:
inputs:
runner:
description: JSON array of runs-on labels, for example ["ubuntu-latest"].
required: false
type: string
default: '["ubuntu-latest"]'
pnpm-version:
required: false
type: string
default: "10.14.0"
node-version:
required: false
type: string
default: "22"
node-architecture:
required: false
type: string
default: ""
registry-url:
required: false
type: string
default: ""
github-packages:
required: false
type: boolean
default: false
install:
required: false
type: boolean
default: true
run:
description: Shell to run after install. Empty skips it.
required: false
type: string
default: ""
timeout-minutes:
required: false
type: number
default: 15
permissions:
contents: read
jobs:
setup:
runs-on: ${{ fromJSON(inputs.runner) }}
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4
- uses: PracticalWorks/.github/.github/actions/setup@v1
with:
pnpm-version: ${{ inputs.pnpm-version }}
node-version: ${{ inputs.node-version }}
node-architecture: ${{ inputs.node-architecture }}
registry-url: ${{ inputs.registry-url }}
github-packages: ${{ inputs.github-packages && 'true' || 'false' }}
install: ${{ inputs.install && 'true' || 'false' }}
- if: inputs.run != ''
name: run
run: ${{ inputs.run }}