Skip to content

Commit

Permalink
feat: add cache input, pin 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Jan 8, 2023
1 parent c977543 commit 033a54d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ inputs:
node-version-file:
description: 'File containing the version Spec of the version to use. Examples: .nvmrc, .node-version, .tool-versions'
required: false
cache:
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
required: false
default: 'npm'
runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # https://github.com/actions/setup-node/releases/tag/v3.6.0
with:
node-version: '${{ inputs.node-version }}'
node-version-file: '${{ inputs.node-version-file }}'
cache: 'npm'
cache: '${{ inputs.node-version-file }}'

- run: npm i -g npm
shell: bash

0 comments on commit 033a54d

Please sign in to comment.