* Allow bundlesize to run for forks too.
* Add name for clone step.
* Add` fail-fast: false`
runs-on: ubuntu-latest
strategy:
+ fail-fast: false
matrix:
node: [8, 10, 12]
steps:
- - uses: actions/checkout@master
+ - name: Clone repository
+ uses: actions/checkout@master
with:
fetch-depth: 3
- name: Run bundlesize
run: npm run bundlesize
- if: matrix.node == 10 && github.repository == 'twbs/bootstrap' && github.event_name == 'push'
+ if: matrix.node == 10
env:
BUNDLESIZE_GITHUB_TOKEN: "${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}"