From 38179319aef0796910f8563f3344a29686b97bc9 Mon Sep 17 00:00:00 2001 From: Alex Yang <32620988+DatProJack@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:39:39 -0500 Subject: [PATCH 1/2] prettier on push/pr --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..36fa46b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Prettier on Push and PR + +on: + push: + branches: + - 'main' + - 'dev**' + pull_request: + branches: + - 'main' + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '18.x' + - name: Install dependencies + run: npm install + - name: Run Prettier + run: npx prettier --write . \ No newline at end of file From dac2f4580f045e0e9c9a3ee48ddd4295a0cbe9ce Mon Sep 17 00:00:00 2001 From: Alex Yang <32620988+DatProJack@users.noreply.github.com> Date: Fri, 29 Mar 2024 18:52:10 -0500 Subject: [PATCH 2/2] npm install to yarn --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36fa46b..3b050e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,6 @@ jobs: with: node-version: '18.x' - name: Install dependencies - run: npm install + run: yarn - name: Run Prettier run: npx prettier --write . \ No newline at end of file