Skip to content

Commit

Permalink
skip build step in action
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner committed Dec 18, 2024
1 parent 96e7014 commit 70820fb
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/_performance-budget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,39 @@ 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

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

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: pnpm
skip_step: build
directory: ./packages/design

0 comments on commit 70820fb

Please sign in to comment.