revert: delete pnpm-setup action
This commit is contained in:
52
.github/actions/pnpm-setup/action.yml
vendored
52
.github/actions/pnpm-setup/action.yml
vendored
@@ -1,52 +0,0 @@
|
||||
name: "PNPM Setup"
|
||||
|
||||
inputs:
|
||||
node-version:
|
||||
required: false
|
||||
type: number
|
||||
default: 18
|
||||
pnpm-version:
|
||||
required: false
|
||||
type: number
|
||||
default: 8
|
||||
install-deps:
|
||||
required: false
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
|
||||
- name: Install PNPM
|
||||
uses: pnpm/action-setup@v2
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: ${{ inputs.pnpm-version }}
|
||||
run_install: false
|
||||
|
||||
- name: Get store directory
|
||||
id: pnpm-cache
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup pnpm cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys:
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Install dependencies
|
||||
if: inputs.install-deps
|
||||
run: pnpm install
|
||||
shell: bash
|
||||
Reference in New Issue
Block a user