From be9250692a0717ca88488e25d3013973ed7032e8 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 11 Apr 2023 12:36:58 -0400 Subject: [PATCH] chore(ci): core build caches api.txt (#27167) ## What is the current behavior? Unbuilt changes in `core` are not always being caught because the `api.txt` file is not cached. Stencil will potentially update both the `src/components.d.ts` and `api.txt` files when there are built changes to the public API. We need to check both files when accounting for unbuilt changes. Example: https://github.com/ionic-team/ionic-framework/pull/25858 This had updates to `api.txt` that were not built. Built changes PR: https://github.com/ionic-team/ionic-framework/pull/25933 Example of this change catching `api.txt` changes as intended: https://github.com/ionic-team/ionic-framework/pull/27165 ## What is the new behavior? - GitHub Actions core build step caches `api.txt` ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- .github/workflows/actions/build-core/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions/build-core/action.yml b/.github/workflows/actions/build-core/action.yml index 7edef6f480..978f7a6782 100644 --- a/.github/workflows/actions/build-core/action.yml +++ b/.github/workflows/actions/build-core/action.yml @@ -22,4 +22,4 @@ runs: with: name: ionic-core output: core/CoreBuild.zip - paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts + paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts core/api.txt