This Github Action that will report a new build to Bugsnag when run.
This action uses bugsnag-build-reporter-node
under the hood, so for more details on available options see its readme.
Required Your Bugsnag API Key.
A version string for the build to report. Default: The version in ./package.json for the PR. This will only work if actions/checkout@v4 is used first.
The name of the person/machine that trigerred this build. Default: The value of whoami
.
If true then CI will fail if this action fails. Default: false
.
The release stage of the build. Default: production
.
The source control provider. Default: github
.
The source control repository. Default: The repository running the Github Action.
The source control revision. Default: The SHA for the running Github Action.
uses: lhansford/bugsnag-report-build-action@v1.3.0
with:
apiKey: ${{ secrets.bugsnag_api_key }}
appVersion: 1.0.0
failCiIfError: true
If appVersion
is not defined the action will try to get it from the package.json
of the project,
so you will need to include actions/checkout@v4
first.
uses: actions/checkout@v4
uses: lhansford/bugsnag-report-build-action@v1.3.0
with:
apiKey: ${{ secrets.bugsnag_api_key }}
failCiIfError: true
To deploy new changes:
- Make changes and update all references to the package version.
- Run
npm run build
- Push changes to
main
branch. - Check CI passed.
- Create a new release on Github matching the new version.