Merge pull request #33 from Nikronic/content-improv #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prettier code formatter | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
workflow_dispatch: | |
jobs: | |
check: | |
# 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 | |
- name: Install Prettier 💾 | |
run: npm install --save-dev --save-exact prettier @shopify/prettier-plugin-liquid | |
- name: Prettier Check 🔎 | |
run: npx prettier . --check |