Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwatunmiisheii committed Sep 8, 2024
1 parent be92e52 commit 4c0ffb5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,31 @@ permissions:
jobs:
prettier:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm install

- name: Install dependencies
run: pnpm install

- name: Run Prettier
run: pnpm prettier --write .
- uses: stefanzweifel/git-auto-commit-action@v5

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style: format with prettier'
1 change: 0 additions & 1 deletion .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand Down

0 comments on commit 4c0ffb5

Please sign in to comment.