Skip to content

Commit

Permalink
ci: use cache on pnpm/action-setup@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
indaco committed Dec 3, 2023
1 parent 43070c9 commit 763c9a5
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Release
on:
release:
types: [created]
Expand All @@ -17,15 +17,28 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

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

- name: Generates the icons components
run: pnpm generate:icons
Expand Down

0 comments on commit 763c9a5

Please sign in to comment.