forked from culshaw/read-package-node-version-actions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
31 lines (27 loc) · 869 Bytes
/
action.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
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: 'Read package.json node and npm engines version'
description: 'Output node and npm version number from package.json engines field'
author: skjnldsv
# https://actions-cool.github.io/github-action-branding/
branding:
icon: 'check-square'
color: 'blue'
inputs:
path:
required: false
description: 'Path of package.json'
default: './'
fallbackNode:
required: false
description: 'Fallback if engines npm version is not defined'
fallbackNpm:
required: false
description: 'Fallback if engines npm version is not defined'
outputs:
nodeVersion:
description: "Node version from engines field in package.json"
npmVersion:
description: "Npm version from engines field in package.json"
runs:
using: 'node20'
main: 'dist/index.js'