Skip to content

Commit

Permalink
chore: actions cache use v2 (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerm1it authored Nov 4, 2020
1 parent 5f62ff7 commit cd8b6ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: '12'

- name: cache package-lock.json
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}
Expand All @@ -35,7 +35,7 @@ jobs:
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
Expand All @@ -51,13 +51,13 @@ jobs:
uses: actions/checkout@master

- name: restore cache from package-lock.json
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: restore cache from node_modules
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
Expand All @@ -74,13 +74,13 @@ jobs:
uses: actions/checkout@master

- name: restore cache from package-lock.json
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: restore cache from node_modules
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
Expand All @@ -97,13 +97,13 @@ jobs:
uses: actions/checkout@master

- name: restore cache from package-lock.json
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: restore cache from node_modules
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
Expand Down

1 comment on commit cd8b6ac

@vercel
Copy link

@vercel vercel bot commented on cd8b6ac Nov 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.