Skip to content

Cache Docusaurus for faster application rebuilds

License

Notifications You must be signed in to change notification settings

tats-u/docuactions-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦖 Docusaurus Cache

This action allows caching Docusaurus for faster application rebuilds.

LICENSE GitHub stars

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Cache Details

This action currently caches the following directories:

  • .docusaurus (build output folder)
  • node_modules/.cache or .yarn/.cache (In Yarn PnP, cache is stored in .yarn/.cache because n_m doesn't exist)

Example workflow

- uses: actions/checkout@v3

- name: Set up Node.js
  uses: actions/setup-node@v3
  with:
   node-version: 18

- uses: docuactions/cache@v1

- name: Install dependencies
  run: npm ci

- name: Build
  run: npm run build

Contributing

Check out Contributing guide for ideas on contributing and setup steps for getting our repositories up.

License

Licensed under the MIT License.

About

Cache Docusaurus for faster application rebuilds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published