diff --git a/.github/workflows/bundle-size-comment.yml b/.github/workflows/bundle-size-comment.yml index 0083d13..9782463 100644 --- a/.github/workflows/bundle-size-comment.yml +++ b/.github/workflows/bundle-size-comment.yml @@ -18,7 +18,7 @@ permissions: pull-requests: write env: - NUXT_BUNDLE_ANALYZER_VERSION: 0.1.7 + NUXT_BUNDLE_ANALYZER_VERSION: 0.2.0 jobs: comment: diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 2c7eab7..3ceed34 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -13,7 +13,9 @@ concurrency: cancel-in-progress: true env: - NUXT_BUNDLE_ANALYZER_VERSION: 0.1.7 + NUXT_BUNDLE_ANALYZER_VERSION: 0.2.0 + # The pages of the playground `--urls` renders and measures: the landing page, a plain page and a docs page. + NUXT_BUNDLE_ANALYZER_URLS: /,/page,/getting-started/introduction jobs: # Analyzes `main` and the PR side by side, compared and posted by `bundle-size-comment.yml`. @@ -35,7 +37,7 @@ jobs: - uses: ./.github/actions/setup # With npx, so the analyzer needs no entry in the lockfile. - name: Analyze the playground - run: npx --yes "nuxt-bundle-analyzer@$NUXT_BUNDLE_ANALYZER_VERSION" playground --name ${{ matrix.target }} --no-serve + run: npx --yes "nuxt-bundle-analyzer@$NUXT_BUNDLE_ANALYZER_VERSION" playground --urls "$NUXT_BUNDLE_ANALYZER_URLS" --name ${{ matrix.target }} --no-serve env: # The content snapshot confirms its commit with GitHub, so both sides ship one. GITHUB_TOKEN: ${{ github.token }}