From dd6db869cd7d238aec7ca897826fbb6124a9e537 Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 2 May 2024 23:06:53 +0200 Subject: [PATCH] Fix prettier workflow --- .github/workflows/prettier.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 85fcd1fa..a2458fd8 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,10 +1,10 @@ name: Prettier -on: - pull_request: - branches: [main] +on: [push] jobs: format: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v4.1.2 @@ -13,7 +13,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v4.0.2 with: - node-version: "18.x" + node-version: "20.x" - run: npm ci - run: npm run prettier - name: Commit changes