Skip to content

Commit

Permalink
feat: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EshaanAgg committed Mar 5, 2024
1 parent bfa4413 commit bd95994
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ jobs:
with:
node-version: "lts"

- name: Cache node modules
- name: Cache dependencies
uses: actions/cache@v3
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-cache-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-cache-node-modules-
${{ runner.os }}-
key: npm-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
run: npm ci
Expand All @@ -50,13 +46,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2

- name: Cache node modules
uses: actions/cache@v2
- name: Cache dependencies
uses: actions/cache@v3
with:
path: benchexec/tablegenerator/react-table/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
run: npm ci
Expand All @@ -76,13 +70,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2

- name: Cache node modules
uses: actions/cache@v2
- name: Cache dependencies
uses: actions/cache@v3
with:
path: benchexec/tablegenerator/react-table/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
run: npm ci
Expand Down

0 comments on commit bd95994

Please sign in to comment.