Skip to content

Commit

Permalink
add pnpm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
huuyafwww committed Nov 27, 2024
1 parent 376d158 commit 7b7dbdb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Expose pnpm store path
id: pnpm_store_path
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm_store_path.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 --prefer-offline

- name: Create release pull request or publish to npm
uses: changesets/action@v1
with:
Expand Down

0 comments on commit 7b7dbdb

Please sign in to comment.