-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test using a composite action to wrap all the node config
- Loading branch information
Showing
2 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'Setup Node.js' | ||
description: 'Sets up Node.js and installs dependencies' | ||
inputs: | ||
node-version: | ||
description: 'The Node.js version to use' | ||
required: true | ||
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 }} |