From 0f6958189beb40efa0184119f8de080f8a635616 Mon Sep 17 00:00:00 2001 From: Ng Wei En Date: Wed, 6 Nov 2024 19:25:20 +0800 Subject: [PATCH] build(workflows): trim Prettier workflow --- .github/workflows/prettier.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index d736fe9e..c018eec6 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -11,17 +11,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Cache Node modules - uses: actions/cache@v1 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - name: Setup Node uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + cache: "npm" - - run: npm install - - run: npx prettier -c . + - run: npx --yes prettier -c .