Skip to content
package

GitHub Action

pnpm install packages with cache

v2 Latest version

pnpm install packages with cache

package

pnpm install packages with cache

Speed up pnpm installation by caching pnpm store

Installation

Copy and paste the following snippet into your .yml file.

              

- name: pnpm install packages with cache

uses: yuanze-dev/pnpm-install-with-cache@v2

Learn more about this action in yuanze-dev/pnpm-install-with-cache

Choose a version

pnpm-install-with-cache

Action for Github Workflows that installs pnpm install with a cache

How to use in workflow.yml:

name: dev

on:
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup node
        uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Pnpm Install
        uses: yuanze-dev/pnpm-install-with-cache@v2
        with:
          pnpm-version: 9

      - name: Build project
        run: pnpm build