Skip to content

Merge pull request #7 from Davi-web/development/pr4 #29

Merge pull request #7 from Davi-web/development/pr4

Merge pull request #7 from Davi-web/development/pr4 #29

Workflow file for this run

name: Format Code
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: write
jobs:
format_code:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.head_ref}}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
cache: "pnpm"
- run: pnpm install
- name: Format Code
run: pnpm run format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes with prettier and github actions
branch: ${{ github.head_ref }}