Skip to content

Commit

Permalink
update formatting runner to use npm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nl32 committed Apr 24, 2024
1 parent f037a64 commit 0d79db7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/prettierCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: Prettier check
run: |
npm i --no-save prettier-plugin-tailwindcss prettier
echo files=`npx prettier . --check`>> "$GITHUB_ENV"
echo status=`echo $?`>>"$GITHUB_ENV"
- name: generate github check message
Expand Down

0 comments on commit 0d79db7

Please sign in to comment.