message: ci: Add `size-limit` to show package size (getsentry/sentry-replay#123)
diff: @@ -11,19 +11,31 @@ jobs:
  name: build
  runs-on: ubuntu-latest
  steps:
  - - uses: actions/checkout@v2
  - - uses: volta-cli/action@v1
  - - uses: actions/cache@v2
  - id: cache
  + - uses: actions/checkout@v3
  +
  + - id: versions
  + run: |
  + echo "::set-output name=node::$(jq -r '.volta.node' package.json)"
  +
  + - uses: actions/setup-node@v3
  with:
  - path: node_modules
  - key: ${{ runner.os }}-${{ hashFiles('package.json', 'yarn.lock') }}
  + node-version: ${{ steps.versions.outputs.node }}
  + cache: 'yarn'
  +
  - name: Install dependencies
  - if: steps.cache.outputs.cache-hit != 'true'
  - run: yarn install --frozen-lockfile
  - - run: yarn test
  - - run: yarn build:prod
  - - run: yarn pack
  + run: |
  + yarn install --frozen-lockfile
  +
  + - run: |
  + yarn test
  +
  + - name: build (and run size-limit)
  + uses: andresz1/size-limit-action@v1
  + with:
  + github_token: ${{ secrets.GITHUB_TOKEN }}
  + build_script: size-limit-build
  + skip_step: install
  +
  - uses: actions/upload-artifact@v2
  with:
  name: ${{ github.sha }}
  