{"id":15762479,"url":"https://github.com/mangs/super-cache-action","last_synced_at":"2026-01-08T16:47:47.017Z","repository":{"id":36977567,"uuid":"474749247","full_name":"mangs/super-cache-action","owner":"mangs","description":"Simple GitHub Action that improves cache performance over actions/cache's recommendations for Node.js projects","archived":false,"fork":false,"pushed_at":"2024-04-08T22:02:21.000Z","size":32,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-13T00:05:29.792Z","etag":null,"topics":["cache","github","github-action","performance","simple"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mangs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-27T20:16:56.000Z","updated_at":"2022-05-28T20:22:43.000Z","dependencies_parsed_at":"2024-04-08T22:52:59.738Z","dependency_job_id":null,"html_url":"https://github.com/mangs/super-cache-action","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"ff1f4f90c5598ca5fa78b41aad4d575387074096"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mangs%2Fsuper-cache-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mangs%2Fsuper-cache-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mangs%2Fsuper-cache-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mangs%2Fsuper-cache-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mangs","download_url":"https://codeload.github.com/mangs/super-cache-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450425,"owners_count":20779406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","github","github-action","performance","simple"],"created_at":"2024-10-04T11:09:19.153Z","updated_at":"2026-01-08T16:47:46.979Z","avatar_url":"https://github.com/mangs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# `mangs/super-cache-action`\n\nSimple GitHub Action that improves cache performance over `actions/cache`'s recommendations for Node.js projects\n\n## Simple Example\n\n```yaml\n- uses: actions/setup-node@v3\n- uses: mangs/super-cache-action@v3\n  id: super-cache\n- if: steps.super-cache.outputs.cache-hit != 'true'\n  run: npm ci\n```\n\n## Custom Cache Key Example\n\n```yaml\n# ...\n# Job 1: production deploy using a matrix strategy\n- uses: actions/setup-node@v3\n- uses: mangs/super-cache-action@v3\n  id: super-cache\n  with:\n    cache-key-suffix: production-deploy\n- if: steps.super-cache.outputs.cache-hit != 'true'\n  run: npm ci --production\n# ...\n\n# ...\n# Job 2: linting and unit testing using a matrix strategy\n- uses: actions/setup-node@v3\n- uses: mangs/super-cache-action@v3\n  id: super-cache\n  with:\n    cache-key-suffix: linting-and-unit-tests\n- if: steps.super-cache.outputs.cache-hit != 'true'\n  run: npm ci\n# ...\n```\n\n## Multiline Dependencies Example\n\n```yaml\n- uses: actions/setup-node@v3\n- uses: mangs/super-cache-action@v3\n  id: super-cache\n  with:\n    cache-targets: |\n      ./.eslintcache\n      ./node_modules\n- if: steps.super-cache.outputs.cache-hit != 'true'\n  run: npm ci\n```\n\n## Action Inputs\n\n| Name               | Required | Default Value    | Descripition                                                                                                                                                                                     |\n| ------------------ | -------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `cache-key-suffix` | N        | `\u003cempty-string\u003e` | String appended to the end of the auto-generated cache key that allows for cache key customization (e.g. separate development and production caches with the latter using `npm ci --production`) |\n| `cache-targets`    | N        | `./node_modules` | Single- or multi-line string wherein each line targets a resource to cache; can use globs                                                                                                        |\n| `package-manager`  | N        | `npm`            | Package manager target for caching operations                                                                                                                                                    |\n\n## Action Outputs\n\n| Name        | Descripition                                                                                                                               |\n| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ |\n| `cache-hit` | A string containing either `true` or `false` indicating if `cache-targets` were fetched from cache and applied to the current workflow run |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmangs%2Fsuper-cache-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmangs%2Fsuper-cache-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmangs%2Fsuper-cache-action/lists"}