Skip to content

Commit

Permalink
fix(ci): fix prettier (saadpasta#633)
Browse files Browse the repository at this point in the history
* fix(ci): fix prettier

fixed prettier for CI builds failing due to node 12.x
updated the github action setup-node to latest

* fix(ci): use npm script instead of global prettier
  • Loading branch information
AhsanAyaz authored Sep 10, 2023
1 parent ac2baf8 commit a323aa2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
persist-credentials: false

- name: Setup Node.js 🔧
uses: actions/setup-node@v2
uses: actions/setup-node@v3.8.1
with:
node-version: 14.x
node-version: 16.x

- name: Update npm 🚀
run: npm install -g npm@latest
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ jobs:
with:
persist-credentials: false

- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v3.8.1
with:
node-version: '12'

- name: Install Prettier
run: npm install -g prettier

node-version: 16.x

- name: Install 🔧 # Install dependencies
run: |
npm install
- name: Check Format
run: |
prettier -c "./**/*.{js,css,json}"
npm run check-format

0 comments on commit a323aa2

Please sign in to comment.