Skip to content

Commit

Permalink
code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjun Sanji committed Jul 1, 2024
1 parent 81e9fd7 commit 8fbae40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
setup:
runs-on: ubuntu-latest
outputs:
package-lock-hash: ${{ steps.hash.outputs.hash }}
package-lock-hash: ${{ runner.os }}-repo-${{ steps.hash.outputs.hash }}
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
Expand All @@ -21,7 +21,7 @@ jobs:
run: npm ci
- name: Calculate package-lock.json hash
id: hash
run: echo "::set-output name=hash::$(sha256sum package-lock.json | awk '{ print $1 }')"
run: echo "hash=$(sha256sum package-lock.json | awk '{ print $1 }')" >> "$GITHUB_OUTPUT"
- name: Cache repository
uses: actions/cache@v4
with:
Expand All @@ -35,7 +35,7 @@ jobs:
uses: actions/cache@v4
with:
path: .
key: ${{ runner.os }}-repo-${{ needs.setup.outputs.package-lock-hash }}
key: ${{ needs.setup.outputs.package-lock-hash }}
fail-on-cache-miss: true
- name: Compile
run: npm run compile
Expand All @@ -48,7 +48,7 @@ jobs:
uses: actions/cache@v4
with:
path: .
key: ${{ runner.os }}-repo-${{ needs.setup.outputs.package-lock-hash }}
key: ${{ needs.setup.outputs.package-lock-hash }}
fail-on-cache-miss: true
- name: Install system dependencies
run: |
Expand Down

0 comments on commit 8fbae40

Please sign in to comment.