{"id":18521674,"url":"https://github.com/transferwise/actions-next-bundle-analyzer","last_synced_at":"2025-04-09T09:33:19.723Z","repository":{"id":40702863,"uuid":"381290884","full_name":"transferwise/actions-next-bundle-analyzer","owner":"transferwise","description":"Github Action that analyses page bundle sizes from a Next.js build","archived":false,"fork":false,"pushed_at":"2024-04-23T05:53:58.000Z","size":133,"stargazers_count":26,"open_issues_count":12,"forks_count":4,"subscribers_count":59,"default_branch":"v2","last_synced_at":"2024-04-23T09:46:22.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transferwise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-06-29T08:19:24.000Z","updated_at":"2024-08-12T05:51:44.319Z","dependencies_parsed_at":"2024-01-29T13:00:06.929Z","dependency_job_id":"9af06d64-1d51-4e86-94d5-624635ff15b7","html_url":"https://github.com/transferwise/actions-next-bundle-analyzer","commit_stats":{"total_commits":21,"total_committers":5,"mean_commits":4.2,"dds":"0.33333333333333337","last_synced_commit":"6512c788cc6816a91963c0fec05c71608943f762"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Factions-next-bundle-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Factions-next-bundle-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Factions-next-bundle-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transferwise%2Factions-next-bundle-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transferwise","download_url":"https://codeload.github.com/transferwise/actions-next-bundle-analyzer/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248012857,"owners_count":21033253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:27:02.410Z","updated_at":"2025-04-09T09:33:18.421Z","avatar_url":"https://github.com/transferwise.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actions-next-bundle-analyzer\n\nGitHub action that analyses the bundle sizes for each route in a Next.js build.\n\n## Usage\n\nAdd the following step to a workflow which runs on a [pull_request](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request) event, after the Next.js project has been built (i.e. after running `pnpm run build`).\n\n```yml\n- name: Analyze bundle sizes\n  uses: transferwise/actions-next-bundle-analyzer@v2\n  with:\n    # Optional, specifies where to look for .next folder. Defaults to cwd.\n    working-directory: ./apps/my-next-app\n    # Optional, configures commenting strategy around insignificant changes, defaults to `always`.\n    # Available options:\n    #   always: Always comment on PRs, even if it's just to say there are no significant changes.\n    #   skip-insignificant: Skip commenting on PRs if there are no signficant changes in page sizes.\n    comment-strategy: 'always'\n    # Optional, configures whether to create the bundle size summary issue, defaults to `true`.\n    # Available options:\n    #   true\n    #   false\n    create-issue: true\n    # Optional, defaults to `github.token`.\n    github-token: ${{ github.token }}\n```\n\n### On a Pull Request\n\nWhen the job runs on a pull request a comment will be added showing the bundle sizes of the branch and the difference against the default branch:\n\n![image](https://user-images.githubusercontent.com/614392/123790589-69872e80-d8d6-11eb-9dec-0686e0bba760.png)\n\n_Note: Difference to the default branch will only be shown once this action has run on a default branch commit._\n\n### On the default branch\n\nWhen the workflow runs on the default branch, it will create/update a GitHub Issue with the current bundle sizes.\n\n![image](https://user-images.githubusercontent.com/52004409/156007377-3e6bbb4c-f721-4b42-a363-4559b2ea55df.png)\n\n## Contributing\n\nCompiled files must also be commited. After making changes to TypeScript files run\n\n```\npnpm run build\n```\n\nAdd both the source files and the new compiled files to your pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransferwise%2Factions-next-bundle-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransferwise%2Factions-next-bundle-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransferwise%2Factions-next-bundle-analyzer/lists"}