Skip to content

Commit

Permalink
use setup-node for npm caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cjflory committed Feb 19, 2024
1 parent b16ec35 commit 7fbe264
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: hosting/package-lock.json
- run: cd hosting && npm ci
- run: cd hosting && node_modules/.bin/nx build
- uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: hosting/package-lock.json
- run: cd hosting && npm ci
- run: cd hosting && node_modules/.bin/nx lint
- run: cd hosting && node_modules/.bin/nx test
Expand Down

0 comments on commit 7fbe264

Please sign in to comment.