Skip to content

Commit e4671f8

Browse files
authored
chore(deployment): fix job name and use same caching (#33)
1 parent 6d792f7 commit e4671f8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/deployment.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
NODE_VERSION: 12.x
1111

1212
jobs:
13-
verify:
13+
release:
1414
runs-on: ubuntu-18.04
1515

1616
steps:
@@ -22,13 +22,14 @@ jobs:
2222
with:
2323
node-version: ${{ env.NODE_VERSION }}
2424

25-
- name: Use cached node_modules
26-
uses: actions/cache@v1
25+
- name: Cache Node.js modules
26+
uses: actions/cache@v2
2727
with:
28-
path: node_modules
29-
key: nodeModules-${{ hashFiles('**/package-lock.json') }}
28+
path: ~/.npm
29+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
3030
restore-keys: |
31-
nodeModules-
31+
${{ runner.OS }}-node-
32+
${{ runner.OS }}-
3233
3334
- name: Install dependencies
3435
run: npm ci

0 commit comments

Comments
 (0)