mirror of
				https://code.forgejo.org/actions/cache.git
				synced 2025-10-30 20:22:28 +00:00 
			
		
		
		
	
				
				No description
				
			
		|  | ||
|---|---|---|
| .devcontainer | ||
| .github | ||
| .licenses | ||
| .vscode | ||
| __tests__ | ||
| dist | ||
| restore | ||
| save | ||
| src | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| .licensed.yml | ||
| .prettierrc.json | ||
| action.yml | ||
| caching-strategies.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| examples.md | ||
| jest.config.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| RELEASES.md | ||
| tips-and-workarounds.md | ||
| tsconfig.json | ||
| Windy | ||
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