diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 702ab3d8a..7a424822e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,13 +60,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.NODE_VERSION }} - - name: Cache Node.js modules - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}- + cache: npm - run: npm ci - run: npm run lint - run: npm test -- --maxWorkers=4 diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index 6f10c8312..95287d2c9 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -19,13 +19,7 @@ jobs: with: node-version: 18 registry-url: https://registry.npmjs.org/ - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: npm - run: npm ci - run: npx semantic-release env: @@ -35,7 +29,7 @@ jobs: - name: Determine tag on current commit id: tag run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')" - + docs-publish: needs: release if: needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release' @@ -49,13 +43,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: 16 - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: npm - name: Generate Docs run: | npm ci diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml index 89c797146..83b950de7 100644 --- a/.github/workflows/release-manual-docs.yml +++ b/.github/workflows/release-manual-docs.yml @@ -4,7 +4,7 @@ on: inputs: tag: default: '' - description: 'Version tag:' + description: 'Version tag:' jobs: docs-publish: if: github.event.inputs.tag != '' @@ -18,13 +18,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: 16 - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: npm - name: Generate Docs run: | npm ci