Skip to content

Commit 7105c3a

Browse files
committed
Customized worflow to workaround prettier-actions external plugins bug
1 parent ea25bff commit 7105c3a

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@v4
45-
- uses: creyD/prettier_action@v4.5
45+
- name: Setup Node.js
46+
- uses: actions/setup-node@v4
4647
with:
47-
prettier_options: --check **/*.{js,ts} --plugin=@ianvs/prettier-plugin-sort-imports
48-
only_changed: True
49-
dry: True
50-
prettier_version: 3.5.3
51-
allow_other_plugins: true
52-
prettier_plugins: "@ianvs/prettier-plugin-sort-imports"
48+
node-version: 20
49+
cache: 'npm'
50+
- name: Install Prettier and Plugins
51+
- run: |
52+
npm install prettier@3.5 @ianvs/prettier-plugin-sort-imports --no-save
53+
- name: Run Prettier Check
54+
- run: |
55+
npx prettier --check js/sign/ --ignore-unknown --ignore-path js/sign/.prettierignore
56+
npx prettier --check js/bundle/ --ignore-unknown --ignore-path js/bundle/.prettierignore
5357

0 commit comments

Comments
 (0)