From 3b98b701810012d93871b7c74a1002c254925c1a Mon Sep 17 00:00:00 2001 From: Billy Date: Fri, 29 Mar 2024 15:26:09 -0700 Subject: [PATCH] chore: checkout package and build --- .github/workflows/package-size-report.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/package-size-report.yaml b/.github/workflows/package-size-report.yaml index 8ebe392d..4edbb77f 100644 --- a/.github/workflows/package-size-report.yaml +++ b/.github/workflows/package-size-report.yaml @@ -9,22 +9,20 @@ permissions: pull-requests: write jobs: - pkg-size-report: - name: Package Size Report + bundle-size-report: + name: Bundle Size Report runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout aws-rum-web + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: '18' - - name: Package size report - uses: pkg-size/action@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - hide-files: '!/build/assets/cwr.js' - + - name: Install dependencies + run: npm install + + - name: Build aws-rum-web bundle + run: npm run build