2019-09-26 15:25:26 +02:00
|
|
|
name: Bundlewatch
|
2020-10-29 18:26:15 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
2019-09-26 15:25:26 +02:00
|
|
|
env:
|
2020-11-23 20:32:25 +01:00
|
|
|
FORCE_COLOR: 2
|
2021-01-14 11:51:14 +01:00
|
|
|
NODE: 14
|
2019-09-26 15:25:26 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
bundlewatch:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-10-29 18:26:15 +01:00
|
|
|
- name: Set up Node.js
|
2021-01-05 20:56:31 +01:00
|
|
|
uses: actions/setup-node@v2
|
2019-09-26 15:25:26 +02:00
|
|
|
with:
|
|
|
|
node-version: "${{ env.NODE }}"
|
2021-07-19 17:38:49 +02:00
|
|
|
cache: npm
|
2019-09-26 15:25:26 +02:00
|
|
|
|
|
|
|
- name: Install npm dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run dist
|
|
|
|
run: npm run dist
|
|
|
|
|
|
|
|
- name: Run bundlewatch
|
|
|
|
run: npm run bundlewatch
|
|
|
|
env:
|
|
|
|
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
|
2020-06-17 14:23:48 +02:00
|
|
|
CI_BRANCH_BASE: main
|