2020-06-12 20:12:53 +02:00
|
|
|
name: Bundlewatch
|
2020-10-29 18:26:15 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-10-04 18:34:47 +02:00
|
|
|
branches-ignore:
|
|
|
|
- "dependabot/**"
|
2020-10-29 18:26:15 +01:00
|
|
|
pull_request:
|
|
|
|
|
2020-06-12 20:12:53 +02:00
|
|
|
env:
|
2020-11-23 20:32:25 +01:00
|
|
|
FORCE_COLOR: 2
|
2021-01-14 11:51:14 +01:00
|
|
|
NODE: 14
|
2020-06-12 20:12:53 +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
|
2020-06-12 20:12:53 +02:00
|
|
|
with:
|
|
|
|
node-version: "${{ env.NODE }}"
|
2021-07-19 17:38:49 +02:00
|
|
|
cache: npm
|
2020-06-12 20:12:53 +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 }}"
|
|
|
|
CI_BRANCH_BASE: v4-dev
|