Github Action - for commenting/posting Webpack Duplicates on your Pull Requests
- [] Add Angular CLI capability
"dependencies": {
...
"webpack-stats-duplicates": "https://github.com/georgebatalinski/webpack-stats-duplicates"
},
"scripts": {
...
"build": "npx webpack --profile --json > stats.json & npx webpack-stats-duplicates stats.json --json"
},
name: blanky
on:
pull_request:
branches: [ main ] #your branch goes here
jobs:
duplicates:
runs-on: ubuntu-latest
name: Webpack duplicates
steps:
- uses: actions/checkout@v2 #we need to checkout the repo - sice we need ./blanky.json available
- name: check webpack bundle for duplicates
uses: georgebatalinski/[email protected]
with:
myToken: ${{ secrets.PRIVATE_REPO_GITHUB_TOKEN }} #you will need a token - if its a private repo