From b0199d69342749626ebae2f826c172a9febc111d Mon Sep 17 00:00:00 2001 From: Alex Yang <32620988+DatProJack@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:48:00 -0500 Subject: [PATCH] github workflows --- .github/workflows/build.yml | 14 ++++---------- .github/workflows/lint.yml | 8 +------- .github/workflows/prettier.yml | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d837ecb..fd14671 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,16 +1,10 @@ -name: Prettier on Push and PR +name: Build on: push: - branches: - - "main" - - "dev**" - pull_request: - branches: - - "main" jobs: - prettier: + build: runs-on: ubuntu-latest steps: @@ -20,5 +14,5 @@ jobs: node-version: "18.x" - name: Install dependencies run: yarn - - name: Run Prettier - run: npx prettier --write . + - name: Build + run: yarn build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ab6f447..c477b00 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,13 +1,7 @@ -name: Lint on Push and PR +name: Lint on: push: - branches: - - 'main' - - 'dev**' - pull_request: - branches: - - 'main' jobs: lint: diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 0000000..150599e --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,18 @@ +name: Prettier + +on: + push: + +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: yarn + - name: Run Prettier + run: npx prettier --write .