Skip to content

Commit

Permalink
Add prettier CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
alshedivat committed Jan 7, 2024
1 parent 1c97a0a commit f12c8bd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: prettier

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:

jobs:
deploy:
# available images: https://github.com/actions/runner-images#available-images
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
- run: npm install --save-dev --save-exact prettier @shopify/prettier-plugin-liquid
- run: npx prettier . --check
# - name: Prettier 💅
# uses: actionsx/prettier@v2
# with:
# # prettier CLI arguments.
# args: --check .

0 comments on commit f12c8bd

Please sign in to comment.