-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Implement
restore-node
as composite action (#339)
ci: Implement `restore-node` as composite action
- Loading branch information
Showing
3 changed files
with
30 additions
and
19 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,22 @@ | ||
name: Restore Node.js env | ||
|
||
description: Restore the task runner infrastructure by Node.js | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Setup node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ./.node-version | ||
|
||
- name: cache node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
./node_modules | ||
key: node-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: install node_modules | ||
shell: bash | ||
run: npm install |
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