chore: simplify caching npm
This commit is contained in:
parent
6d62e61f5b
commit
15b60863c1
1 changed files with 1 additions and 14 deletions
15
.github/workflows/default.yml
vendored
15
.github/workflows/default.yml
vendored
|
|
@ -102,20 +102,7 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "18"
|
||||
|
||||
- name: Get NPM cache dir
|
||||
id: npm-cache-dir
|
||||
run: |
|
||||
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache NPM modules
|
||||
uses: actions/cache@v3
|
||||
id: npm-cache
|
||||
with:
|
||||
path: ${{ steps.npm-cache-dir.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
cache: "npm"
|
||||
|
||||
- name: Install tools
|
||||
run: make install-ui
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue