diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 968d684fa08..f7caf7df5d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Testing Build on: [push] @@ -23,3 +23,5 @@ jobs: run: yarn --no-progress --non-interactive --no-lockfile - name: Build run: yarn build + env: + GITHUB_PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index a5c093bf32e..43c08aaea45 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "alex": "^8.2.0", + "asset-compare-git-webpack-plugin": "https://github.com/supriya-raj/asset-compare-git-webpack-plugin#948ea4be2398351ff2fab233e83fa0ff7c465a8f", "eslint": "^7.11.0", "execa": "1.0.0", "fs-extra": "^9.0.1", diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 5e5f87f3ce9..6c3c6ab1c39 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -8,6 +8,7 @@ // @remove-on-eject-end 'use strict'; +const AssetComparePlugin = require('asset-compare-git-webpack-plugin'); const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); @@ -788,6 +789,9 @@ module.exports = function (webpackEnv) { }, }, }), + new AssetComparePlugin({ + gist_id: '3372502a4187b06e810e07f1b20b6d24', + }), ].filter(Boolean), // Some libraries import Node modules but don't use them in the browser. // Tell webpack to provide empty mocks for them so importing them works.