Skip to content

Commit

Permalink
Create prettie.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Luis <luis@lefv.io>
  • Loading branch information
gwicho38 authored Jul 18, 2024
1 parent 7ef3959 commit b1f1ad5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/prettie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: Prettier

on:
pull_request:
branches: [main]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 21
cache: npm

- name: Install dependencies
run: npm ci

- name: Run Prettier
run: npx prettier --write .

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore:prettier"
branch: ${{ github.head_ref }}

0 comments on commit b1f1ad5

Please sign in to comment.