From 8d63bea69da8d9ecc536f52f41925f7b74118d37 Mon Sep 17 00:00:00 2001 From: StephanGerbeth Date: Tue, 17 Sep 2024 09:57:28 +0200 Subject: [PATCH] fix(git-action): updated beta cache workflow --- .github/workflows/beta.yml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 98833e0..d232bbc 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -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 @@ -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 }}