Skip to content

Commit 2e666e7

Browse files
chore: migrate Prettier workflow to use pnpm and update lockfile
1 parent 587841e commit 2e666e7

2 files changed

Lines changed: 91 additions & 3 deletions

File tree

.github/workflows/prettier.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,22 @@ jobs:
2020
# Important, so the commit can be pushed back
2121
token: ${{ secrets.GITHUB_TOKEN }}
2222

23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
2328
- name: Setup Node.js
2429
uses: actions/setup-node@v4
2530
with:
2631
node-version: 20
27-
cache: 'npm'
32+
cache: 'pnpm'
2833

2934
- name: Install dependencies
30-
run: npm ci
35+
run: pnpm install --frozen-lockfile
3136

3237
- name: Run Prettier
33-
run: npx prettier --write .
38+
run: pnpm exec prettier --write .
3439

3540
- name: Commit changes
3641
uses: stefanzweifel/git-auto-commit-action@v5

pnpm-lock.yaml

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)