Skip to content

Commit

Permalink
Merge pull request #28 from MarvNC/add-prettier-check
Browse files Browse the repository at this point in the history
Add Workflow for `prettier --check .`
  • Loading branch information
MarvNC authored Aug 9, 2024
2 parents 63758a8 + dc61f27 commit 7aaace1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/prettier-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Prettier Check

on: [push, pull_request]

jobs:
prettier-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run check-format
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"scripts": {
"format": "npx prettier --write .",
"check-format": "npx prettier --check .",
"build": "tsc",
"prepublish": "npm run build"
},
Expand Down

0 comments on commit 7aaace1

Please sign in to comment.