Skip to content

iCHEF/npm-install-with-cache-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

npm-install-with-cache-action v2

Usage

  1. use actions/checkout to checkout your repo under $GITHUB_WORKSPACE
  2. use actions/setup-node with node-version
  3. use iCHEF/npm-install-with-cache-action with inputs if needed

Inputs

  • npm-token - defaults to "". Provide auth token if your project dependency contains private packages.
  • skip-cache - defaults to "false". Set it to "true" to skip cache steps.
  • engine - default to "npm". Also supports "yarn".
  • args - defaults to "", will be passed to package manager when running install.
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-node@v4
      with:
        node-version: 20
    - name: Install packages with cache
      uses: iCHEF/npm-install-with-cache-action@v2
      with:
        npm-token: ${{ secrets.NPM_TOKEN }}
        engine: npm
        args: --force

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published