Skip to content

Commit

Permalink
build: use npm-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSolati committed Jun 8, 2020
1 parent bde3c16 commit f14ab26
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
echo "_auth=$NPM_TOKEN" >> /home/runner/work/_temp/.npmrc
echo "email=$NPM_EMAIL" >> /home/runner/work/_temp/.npmrc
echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
- name: NPM Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm i
- name: Build
Expand All @@ -41,6 +48,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: NPM Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm i
- name: Install Firebase Tools
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: NPM Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm i
- name: Lint
Expand Down

0 comments on commit f14ab26

Please sign in to comment.