Skip to content

Commit

Permalink
feat: support switching pnpm versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0225SUN committed Jun 4, 2024
1 parent 945b921 commit 1fc876e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ description: "Speed up pnpm installation by caching pnpm store."
branding:
icon: "package"
color: "green"

inputs:
pnpm-version:
description: "The version of pnpm to install."
required: false
default: "latest"

runs:
using: "composite"
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
version: ${{ inputs.pnpm-version }}
run_install: false

- name: Get pnpm store directory
Expand Down

0 comments on commit 1fc876e

Please sign in to comment.