Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
description: "npm registry URL (set when publishing to configure auth)"
required: false
default: ""
cache:
description: "Package manager to cache (npm, yarn, pnpm). Set to empty string to disable caching."
required: false
default: "npm"

runs:
using: "composite"
Expand All @@ -23,6 +27,7 @@ runs:
with:
node-version-file: ${{ inputs.node-version-file }}
registry-url: ${{ inputs.registry-url || '' }}
cache: ${{ inputs.cache }}

- name: "Install global npm"
run: npm install -g npm
Expand Down