-
Notifications
You must be signed in to change notification settings - Fork 483
Expand file tree
/
Copy pathaction.yml
More file actions
42 lines (42 loc) · 1.25 KB
/
action.yml
File metadata and controls
42 lines (42 loc) · 1.25 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
name: Setup project
description: Install required tools
inputs:
java-version:
description: Desired Java version
default: "21.0.8"
node-version:
required: false
description: node version to install
# Use pre-installed Node version in Ubuntu 22.04 runner
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
default: 24.13.0
windows-fix:
required: false
description: https://github.com/actions/setup-node/issues/899#issuecomment-1837381044
default: "false"
node-cache:
required: false
description: Cache strategy for setup-node. Set to empty string to disable
default: "yarn"
runs:
using: composite
steps:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ inputs.java-version }}
- uses: actions/setup-node@v4
if: ${{ inputs.windows-fix == 'true' }}
name: (Windows fix) Setup node without cache
with:
node-version: ${{ inputs.node-version }}
- name: Enable corepack
shell: bash
run: |
corepack enable
yarn --version
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: ${{ inputs.node-cache }}