GitHub Action
Upload your build stats to us via GitHub Action
Our GitHub Action supports vanilla webpack projects and Create React App out of the box. For other platforms, see platform specific documentation if available, along with how to use our webpack plugin directly.
You can set this up in GitHub Actions UI, or you can use the following workflow to get started quickly in your
.github/workflows/push.yml
on: push
name: packtracker.io
jobs:
report:
name: report webpack stats
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: report webpack stats
uses: packtracker/[email protected]
env:
PT_PROJECT_TOKEN: ${{ secrets.PT_PROJECT_TOKEN }}
WEBPACK_CONFIG_PATH: ./config/webpack/production.js
You will also need to add your project token as a secret.

Navigate to your repository settings.

Add a new secret that corresponds with the variable you used in your workflow.
Last modified 3yr ago