Don't require node version -- use default to consolidate #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Setup Node.js' | |
description: 'Sets up Node.js and installs dependencies' | |
inputs: | |
node-version: | |
description: 'The Node.js version to use' | |
required: false | |
default: '20.16.0' | |
cache: | |
description: 'Whether to cache dependencies' | |
required: false | |
default: 'yarn' | |
cache-dependency-path: | |
description: 'The path to the dependency file to cache' | |
required: false | |
default: 'client/yarn.lock' | |
runs: | |
using: "composite" | |
steps: | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ inputs.node-version }} | |
cache: ${{ inputs.cache }} | |
cache-dependency-path: ${{ inputs.cache-dependency-path }} |