|
19 | 19 | - uses: actions/setup-node@v2
|
20 | 20 | with:
|
21 | 21 | node-version: ${{ matrix.node }}
|
22 |
| - - name: Set up npm cache |
23 |
| - uses: actions/cache@v2 |
24 |
| - with: |
25 |
| - path: ~/.npm |
26 |
| - key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
27 |
| - restore-keys: | |
28 |
| - ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
| 22 | + cache: npm |
29 | 23 | - run: npm ci
|
30 | 24 | - run: npm test
|
31 | 25 | - run: npm run codecov
|
|
37 | 31 | - uses: actions/setup-node@v2
|
38 | 32 | with:
|
39 | 33 | node-version: ${{ env.NODE }}
|
40 |
| - - name: Get npm cache directory |
41 |
| - id: npm-cache |
42 |
| - run: | |
43 |
| - echo "::set-output name=dir::$(npm config get cache)" |
44 |
| - - name: Set up npm cache |
45 |
| - uses: actions/cache@v2 |
46 |
| - with: |
47 |
| - path: ${{ steps.npm-cache.outputs.dir }} |
48 |
| - key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
49 |
| - restore-keys: | |
50 |
| - ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
| 34 | + cache: npm |
51 | 35 | - run: npm ci
|
52 | 36 | - run: npm test
|
53 | 37 | lint:
|
|
57 | 41 | - uses: actions/setup-node@v2
|
58 | 42 | with:
|
59 | 43 | node-version: ${{ env.NODE }}
|
60 |
| - - name: Set up npm cache |
61 |
| - uses: actions/cache@v2 |
62 |
| - with: |
63 |
| - path: ~/.npm |
64 |
| - key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
65 |
| - restore-keys: | |
66 |
| - ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
| 44 | + cache: npm |
67 | 45 | - run: npm ci
|
68 | 46 | - run: npm run lint
|
69 | 47 | docs:
|
|
73 | 51 | - uses: actions/setup-node@v2
|
74 | 52 | with:
|
75 | 53 | node-version: ${{ env.NODE }}
|
76 |
| - - name: Set up npm cache |
77 |
| - uses: actions/cache@v2 |
78 |
| - with: |
79 |
| - path: ~/.npm |
80 |
| - key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
81 |
| - restore-keys: | |
82 |
| - ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
| 54 | + cache: npm |
83 | 55 | - run: npm ci
|
84 | 56 | - run: npm run docs-test
|
85 | 57 | release:
|
|
91 | 63 | - uses: actions/setup-node@v2
|
92 | 64 | with:
|
93 | 65 | node-version: ${{ env.NODE }}
|
94 |
| - - name: Set up npm cache |
95 |
| - uses: actions/cache@v2 |
96 |
| - with: |
97 |
| - path: ~/.npm |
98 |
| - key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
99 |
| - restore-keys: | |
100 |
| - ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }} |
| 66 | + cache: npm |
101 | 67 | - run: npm ci
|
102 | 68 | - run: npm run compile
|
103 | 69 | - run: npm run build-binaries
|
|
0 commit comments