Cache dependencies and build outputs in GitHub Actions
 
 
 
Go to file
Nodoubtz b7b892d99a
Create google.yml
Signed-off-by: Nodoubtz <53144580+nodoubtz@users.noreply.github.com>
.devcontainer GA for granular cache ()
.github Create google.yml
.licenses Update to use the latest version of the cache package to obfuscate the SAS
.vscode Initial commit
__tests__ added unit tests
dist Update to use the latest version of the cache package to obfuscate the SAS
restore Merge branch 'main' into todgru/v4-documentation-update
save docs: Make the "always save prime numbers" example more clear ()
src appease the linter
.eslintrc.json Update eslint and prettier
.gitattributes Fix line ending for windows test
.gitignore test e2e during workflow ()
.licensed.yml Add licensed output
.prettierrc.json Initial commit
CODE_OF_CONDUCT.md Fix repo name in contact email ()
CONTRIBUTING.md Update contributing.md
LICENSE Update LICENSE
README.md Update README.md
RELEASES.md Update releases.md
Windy Create Windy
action.yml Update action.yml
caching-strategies.md Correct GitHub Spelling in caching-strategies.md ()
examples.md Add Bun example ()
jest.config.js Resolve dependabot alerts
package-lock.json Update to use the latest version of the cache package to obfuscate the SAS
package.json Update to use the latest version of the cache package to obfuscate the SAS
tips-and-workarounds.md Update force deletion docs due a recent deprecation ()
tsconfig.json Initial commit

README.md

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