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 .