From 63da3671bdf21ee46342511a31b3b5df10d288ce Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Sat, 18 May 2024 19:08:28 -0400 Subject: [PATCH 1/3] prettier upgrade --- .github/workflows/lint.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 04f98f9bb..ff1d0ed79 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,12 +18,19 @@ jobs: # This is important to fetch the changes to the previous commit fetch-depth: 0 - - name: Prettify code - uses: creyD/prettier_action@v3.3 # https://github.com/creyD/prettier_action + - name: Set up Node.js + uses: actions/setup-node@v3 with: - dry: true - prettier_options: --write . - # Setting only_changed to false picks up new files - only_changed: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + node-version: '16' # Specify the Node.js version + + - name: Install dependencies + run: npm install + + - name: Run Prettier + id: prettier + run: npx prettier --check . + continue-on-error: false + + - name: Check if Prettier failed + if: steps.prettier.outcome == 'failure' + run: exit 1 From c17ebf90a99389f006adc297b633e45ec223407d Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Sat, 18 May 2024 19:11:32 -0400 Subject: [PATCH 2/3] Node 18 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ff1d0ed79..43a309165 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '16' # Specify the Node.js version + node-version: '18' # Specify the Node.js version - name: Install dependencies run: npm install From 1cf7a6deef843c55f7e0b2cf07e35f137297ced0 Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Sat, 18 May 2024 19:13:44 -0400 Subject: [PATCH 3/3] Run prettier on the prettier action config --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 43a309165..418816635 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '18' # Specify the Node.js version + node-version: "18" # Specify the Node.js version - name: Install dependencies run: npm install