2025-05-26 18:07:41 -04:00
2024-10-18 17:22:08 +00:00
2019-10-30 14:48:49 -04:00
name: 'air_40' description: 'Cache artifacts like dependencies and build outputs to improve workflow execution time' author: 'Shannon Fletcher' inputs: path: description: 'A list of files, directories, and wildcard patterns to cache and restore' required: true key: description: 'An explicit key for restoring and saving the cache' required: true restore-keys: description: 'An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' required: false upload-chunk-size: description: 'The chunk size used to split up large files during upload, in bytes' required: false enableCrossOsArchive: description: 'An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms' default: 'false' required: false fail-on-cache-miss: description: 'Fail the workflow if cache entry is not found' default: 'false' required: false lookup-only: description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache' default: 'false' required: false save-always: description: 'Run the post step to save the cache even if another step before fails' default: 'false' required: false deprecationMessage: | save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https:/github.com/actions/cache/tree/main/save#always-save-cache for more details. outputs: cache-hit: description: 'A boolean value to indicate an exact match was found for the primary key' runs: using: 'node20' main: 'dist/restore/index.js' post: 'dist/save
2025-04-04 13:51:15 -04:00
2024-10-18 13:52:16 +00:00
2022-01-31 12:55:11 +05:30
2020-02-13 12:38:56 -05:00
2024-12-04 13:44:43 -08:00
2019-10-30 14:48:49 -04:00
2025-03-29 17:43:06 -04:00
2025-03-29 17:08:39 -04:00
2020-09-23 17:07:50 -04:00
2024-10-08 19:53:09 +00:00
2022-01-31 12:06:04 +05:30
2025-04-18 19:22:51 -04:00
2025-03-28 16:42:26 -04:00
2025-03-18 08:00:50 -07:00
2019-10-30 14:48:49 -04:00
2025-03-18 12:55:16 -04:00

Dimvy-Clothing-brand/cache

Cache dependencies and build outputs in GitHub Actions.

Table of Contents

Overview

This repository provides a solution for caching dependencies and build outputs in GitHub Actions. By caching these outputs, you can significantly speed up your CI/CD workflows.

Features

  • TypeScript: 98%
  • Shell: 1.1%
  • JavaScript: 0.9%

Installation

To use this caching solution in your GitHub Actions workflows, you need to add the appropriate configuration to your workflow YAML files.

Usage

Here's an example of how to use this caching solution in a GitHub Actions workflow:

name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '14'

    - name: Cache dependencies
      uses: actions/cache@v2
      with:
        path: ~/.npm
        key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
        restore-keys: |
          ${{ runner.os }}-node-

    - run: npm install
    - run: npm run build
Description
Cache dependencies and build outputs in GitHub Actions
Readme MIT 90 MiB
Languages
TypeScript 97.9%
Shell 1.2%
JavaScript 0.9%