diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d2bc9162bd96bba26fe4e8f9e809551e0cbb78c2..8a4dee2449fff9d29c03da2b811eac41ce0e1eb4 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -119,6 +119,7 @@ jobs:
 
   size-limit:
     runs-on: ubuntu-latest
+    if: github.event_name == 'pull_request'
     name: Size Limit
     steps:
       - uses: actions/checkout@v4
@@ -132,12 +133,13 @@ jobs:
         run: pnpm install
       - name: Build llamaindex
         run: pnpm run build
-      - uses: andresz1/size-limit-action@v1
+      - uses: andresz1/size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           directory: e2e/examples/vite-import-llamaindex
           skip_step: "install"
           build_script: build
+          package_manager: pnpm
 
   typecheck-examples:
     runs-on: ubuntu-latest