Files
vue-flow/.github/actions/install-dependencies/action.yaml
2024-05-12 18:06:56 +02:00

36 lines
959 B
YAML

name: Install Dependencies
description: This workflow will install dependencies and should be used as an action for other workflows
runs:
using: "composite"
steps:
- name: Install pnpm 📦
uses: pnpm/action-setup@v3.0.0
with:
version: 9
run_install: false
- name: Setup pnpm config 📖
run: pnpm config set store-dir .pnpm-store
shell: bash
- name: Get pnpm store directory 🏬
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache 🧃
uses: actions/cache@v4
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 👨🏻‍💻
run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash