From 705f28d23a83052c0dfd89729039c4678fff5649 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 29 Aug 2025 13:56:56 +0200 Subject: [PATCH] github/workflows: add prettier cache Signed-off-by: Patrik Oldsberg --- .github/workflows/ci.yml | 6 +++--- .prettierignore | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e967effb13..53f599e926 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,9 +102,6 @@ jobs: - name: type checking and declarations run: yarn tsc:full - - name: prettier - run: yarn prettier:check - # We need to generate the API references as well, so that we can verify the doc links - name: check api reports and generate API reference run: yarn build:api-reports:only --ci --docs @@ -246,6 +243,9 @@ jobs: restore-keys: | ${{ runner.os }}-v${{ matrix.node-version }}-backstage-cli- + - name: prettier + run: yarn prettier:check --cache --cache-location .cache/backstage-cli/.prettier-cache + - name: lint changed packages run: yarn backstage-cli repo lint --since origin/master --successCache --successCacheDir .cache/backstage-cli diff --git a/.prettierignore b/.prettierignore index 718387ef22..7269620fe6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,5 @@ +.cache +.lighthouseci .yarn dist microsite @@ -8,6 +10,7 @@ packages/ui/css coverage *.hbs templates +type-docs # old reports api-report.md api-report-*.md