/actions-1

Collection of reusable GitHub Actions

Primary LanguageJavaScriptMIT LicenseMIT

umidbekk/actions

Checks

Collection of reusable GitHub Actions

NPM

Install

Features:

  • Install packages using npm or yarn
  • Caches whole node_modules directory
  • Skips installation step when lockfile cache is hit.

Options:

  • working-directory – the default working directory
  • cache-key – an explicit key for restoring and saving the cache

Usage:

steps:
  - uses: actions/checkout@v2
  - uses: umidbekk/actions/npm/install@v1

Passing cache-key

strategy:
  matrix:
    node: ["12", "14"]
steps:
  - uses: actions/checkout@v2
  - uses: actions/setup-node@v2
    with:
      node-version: ${{ matrix.node }}
  - uses: umidbekk/actions/npm/install@v1
    with:
      cache-key: npm-${{ matrix.node }}-