-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created composite action for workflow
- Loading branch information
1 parent
44bf0fc
commit 255bcfe
Showing
2 changed files
with
21 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: 'Npm Actions' | ||
description: 'Used for installing and caching the dependencies' | ||
inputs: | ||
path: | ||
description: 'Enter the path to cache' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Caching Dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ inputs.path }} | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: Installing Dependencies | ||
run: npm install | ||
shell: bash |
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