Skip to content

Commit

Permalink
ci(repo): update pnpm installer (#18725)
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx authored Jan 7, 2025
1 parent 75204de commit 535157f
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions .github/actions/install-pnpm-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
name: "Install pnpm dependencies"
description: "Install pnpm dependencies"
name: Install pnpm dependencies
description: Reusable action to install pnpm dependencies

runs:
using: "composite"
using: composite
steps:
- name: Set up Git to use HTTPS
shell: bash
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9
run_install: false

- 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
- name: Install Node.js
uses: actions/setup-node@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 20
cache: pnpm

- name: Install dependencies
shell: bash
Expand Down

0 comments on commit 535157f

Please sign in to comment.