From 0b0b49ad8c0a01f5fdd52418fafdb2bb53554458 Mon Sep 17 00:00:00 2001 From: Aram Date: Sat, 30 Mar 2024 06:13:44 -0700 Subject: [PATCH] Create Prettier Workflow (#47) * Create prettier.yml Signed-off-by: Aram * Update prettier.yml * ignore this commit --------- Signed-off-by: Aram --- .github/workflows/prettier.yml | 27 +++++++++++++++++++++++++++ CONTRIBUTING.md | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 0000000..d356445 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,27 @@ +name: Prettier + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + prettier: + runs-on: ubuntu-latest + name: Prettier + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: "20.x" + cache: "npm" + + - name: Install Dependencies + run: npm i + + - name: Run Prettier + run: npx prettier --check . diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 098c1a2..faebc8b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1 +1,2 @@ # INSERT QUIDE ON HOW TO CONTRIBUTE HERE +