Merge pull request #4194 from mermaid-js/chore/skip-setup-node-caching-in-e2e-ci

CI(e2e): Skip caching in `actions/setup-node`, as `cypress-io/github-action` already caches for us
This commit is contained in:
Sidharth Vinod
2023-03-07 08:34:06 +05:30
committed by GitHub

View File

@@ -21,11 +21,7 @@ jobs:
- name: Setup Node.js ${{ matrix.node-version }} - name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
# Need to skip setup if Cypress run is skipped, otherwise an error
# is thrown since the pnpm cache step fails
if: ${{ ( env.CYPRESS_RECORD_KEY != '' ) || ( matrix.containers == 1 ) }}
with: with:
cache: pnpm
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
# Install NPM dependencies, cache them correctly # Install NPM dependencies, cache them correctly