-
Notifications
You must be signed in to change notification settings - Fork 71
/
action.yml
26 lines (26 loc) · 979 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
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions
name: 'NPM or Yarn install with caching'
description: 'Install npm dependencies with caching'
author: 'Gleb Bahmutov'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
color: 'yellow'
icon: 'command'
inputs:
working-directory:
description: 'Working directory to specify subfolder in which dependencies are defined'
required: false
useLockFile:
description: 'Option to enable or disable use of a lock file (package-lock.json/yarn.lock)'
required: false
useRollingCache:
description: Option to enable restoring a cache that doesn't exactly match the lockfile, and expire once a month to keep it from only growing larger
required: false
install-command:
description: 'Custom install command to use'
required: false
cache-key-prefix:
description: 'Prefix the cache name with this string'
required: false