Skip to content

Commit 51fb0f8

Browse files
committed
nuke the old prettier github action because it doesnt work nicely
1 parent 6b8b71c commit 51fb0f8

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/prettier.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,28 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
with:
15-
# Make sure the actual branch is checked out when running on pull requests
16-
ref: ${{ github.head_ref }}
12+
- name: Checkout Repo
13+
uses: actions/checkout@v4
14+
15+
- name: Read .nvmrc
16+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
17+
id: nvm
1718

19+
- name: Use Node.js (.nvmrc)
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
1823

19-
- uses: actions/checkout@v2 # Check out the repository first.
20-
- uses: actionsx/prettier@v2
24+
- name: Install PNPM
25+
uses: pnpm/action-setup@v4
2126
with:
22-
# prettier CLI arguments.
23-
args: --check --ignore-path .prettierignore --config .prettierrc '**/*.{ts,tsx,js,jsx}'
27+
version: latest
28+
29+
- name: Install Dependencies
30+
run: pnpm install
31+
32+
- name: Install Dependencies
33+
run: pnpm install
34+
35+
- name: Check formatting
36+
run: pnpm format --check

0 commit comments

Comments
 (0)