Skip to content

Commit

Permalink
Refactor release workflow to update Node.js and pnpm setup steps, imp…
Browse files Browse the repository at this point in the history
…rove caching, and streamline pnpm installation
  • Loading branch information
JackDevAU committed Jan 17, 2025
1 parent 34f7af8 commit 6becd9f
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,33 @@ jobs:
steps:
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Setup Node.js 20.x
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

# Setup pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v4
name: Setup pnpm
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Install dependencies
- name: Install Dependencies
- name: Install dependencies
run: pnpm install

# Build and release
Expand Down

0 comments on commit 6becd9f

Please sign in to comment.