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 }}