Use CI cache to speed up `npm ci`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- github-actions, node.js
- Domain
- ci-cd
Research direction
Locate the CI workflow files that use actions/setup-node and npm ci. Add the requested npm cache configuration and prefer-offline option to the relevant workflow steps, then run the affected CI workflow to confirm dependency installation still succeeds and caching is enabled.
Written by the indexing model from the issue text.
Description
This issue is to track using of CI caches to speed up CI workflows.
To enable caching for NPM-based projects:
- Add the
cache: npminput to instances of theactions/setup-nodeGithub Action:using: actions/setup-node@v4.0.0 with: cache: npm - Add
--prefer-offlineto instances ofnpm 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.
- Dominant language
- Shell
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from loopbackio/cicd
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
loopbackio/cicd#170 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
loopbackio/cicd#89 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
loopbackio/cicd#39 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
loopbackio/cicd#26 ·
-
Dependency Dashboard Open
Difficulty 3/5 1-2 days Newbie friendliness 20/100
loopbackio/cicd#17 ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 91/100
alunduil/alunduil-chezmoi#792 ·