Skip to content

Commit

Permalink
specify package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner committed Dec 18, 2024
1 parent 0b7649a commit 96e7014
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/_performance-budget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,40 @@ jobs:
with:
node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }}

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

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
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

- name: Build
run: pnpm build
# - name: Install pnpm
# uses: pnpm/action-setup@v4
# id: pnpm-install
# with:
# run_install: false
#
# - name: Get pnpm store directory
# id: pnpm-cache
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
#
# - uses: actions/cache@v4
# name: Setup pnpm cache
# 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
#
# - name: Build
# run: pnpm build

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install
package_manager: pnpm
directory: ./apps/spotlight

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install
package_manager: pnpm
directory: ./packages/design
2 changes: 1 addition & 1 deletion .github/workflows/monitor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run tests'
name: Monitor budget

on:
push:
Expand Down

0 comments on commit 96e7014

Please sign in to comment.