Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use CI cache to speed up npm ci #91

Open
achrinza opened this issue Nov 8, 2023 · 0 comments
Open

Use CI cache to speed up npm ci #91

achrinza opened this issue Nov 8, 2023 · 0 comments

Comments

@achrinza
Copy link
Member

achrinza commented Nov 8, 2023

This issue is to track using of CI caches to speed up CI workflows.

To enable caching for NPM-based projects:

  • Add the cache: npm input to instances of the actions/setup-node Github Action:
    using: actions/setup-node@v4.0.0
    with:
      cache: npm
    
  • Add --prefer-offline to instances of npm ci
    This will stop NPM from performing "staleness" checks, without the "hard failure" of --offline.

Restrictions

The storage of cache is 10 GB per-repository, with a maximum "no access" duration of 7 days. If any of these limits are hit, they will be automatically evicted. Hence, there should not be much additional maintenance oerhead for us.

achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 8, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: https://github.com/loopbackio/security/issues/87
see: loopbackio/security#26

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: loopbackio/security#27
see: loopbackio/security#26
see: loopbackio/security#23
see: loopbackio/security#16

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: loopbackio/security#27
see: loopbackio/security#26
see: loopbackio/security#23
see: loopbackio/security#16

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: loopbackio/security#27
see: loopbackio/security#26
see: loopbackio/security#23
see: loopbackio/security#16

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: loopbackio/security#27
see: loopbackio/security#26
see: loopbackio/security#23
see: loopbackio/security#16

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
achrinza added a commit to loopbackio/strong-error-handler that referenced this issue Nov 9, 2023
see: loopbackio/cicd#91
see: loopbackio/cicd#90
see: loopbackio/cicd#89
see: loopbackio/cicd#83
see: loopbackio/security#27
see: loopbackio/security#26
see: loopbackio/security#23
see: loopbackio/security#16

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant