Skip to content

Commit

Permalink
Fix npm cacheing
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-gai committed Oct 30, 2021
1 parent fa349e3 commit 79a5a17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/web-app-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
name: "production"
url: ${{ steps.azure-webapps-deploy.outputs.webapp-url }}
steps:
- uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js version
uses: actions/setup-node@v2
with:
node-version: "14.x"
cache: 'npm'
cache-dependency-path: ./web-app
- name: npm install, lint, build
working-directory: ./web-app
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/web-app-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js version
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: "14.x"
cache: 'npm'
cache-dependency-path: ./web-app

- name: npm install, lint, build
working-directory: ./web-app
Expand Down

0 comments on commit 79a5a17

Please sign in to comment.