Skip to content

Commit

Permalink
add prettier format action
Browse files Browse the repository at this point in the history
  • Loading branch information
Whisker17 committed Aug 4, 2023
1 parent bae6d58 commit 8106ebc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prettier_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prettier Format

on:
push:
branches:
- feat/add-prettier-check-actions # Replace with your main branch name

jobs:
format:
name: Format Code
runs-on: ubuntu-latest

steps:
- name: Check Out Code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Replace with the Node.js version you're using

- name: Install Dependencies
run: npm install # Or yarn install

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

0 comments on commit 8106ebc

Please sign in to comment.