From a0b414222128236940e7e64c8d7aebf17bcee778 Mon Sep 17 00:00:00 2001 From: ahnpnl Date: Mon, 24 Feb 2025 11:06:12 +0100 Subject: [PATCH] build: add verification for `jit_transform.js` update Since we build `jit_transform.js` based on `@angular/compiler` version, we need to have a way to fail pipeline when there are updated from Angular so that we can release a new version with updated bundle `jit_transform.js` --- .github/workflows/install.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index c6dabc874b..897bfb3c28 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -56,3 +56,8 @@ jobs: yarn --cwd examples/example-app-v18 yarn --cwd examples/example-app-v19 yarn --cwd examples/example-app-yarn-workspace + - name: Verify changes of jit_transform.js + if: ${{ steps.cache-yarn.outputs.cache-hit != 'true' }} + run: | + yarn build + git diff --exit-code $(git describe --tags --abbrev=0) HEAD -- src/transformers/jit_transform.js || (echo "Error: src/jit_transform.js needs to be UPDATED" && exit 1)