Skip to content

Commit

Permalink
fix(git-action): updated beta cache workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanGerbeth committed Sep 17, 2024
1 parent febccc0 commit 8d63bea
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,14 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Checkout Repo
uses: actions/checkout@v4

- name: cache node_modules
uses: actions/cache@v4
id: cache
with:
path: |
node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Lint
Expand All @@ -63,20 +54,13 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Checkout Repo
uses: actions/checkout@v4

- name: cache node_modules
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}

cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Versioning
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down

0 comments on commit 8d63bea

Please sign in to comment.