diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index eaaa0d37a6..62203ee61a 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -17,7 +17,7 @@ jobs: cache: 'npm' # Workflows are not allowed to edit workflows. As result, we need to prevent Prettier from formatting them. - name: Prevent workflows from being formatted - run: echo ".github" >> .prettierignore + run: echo "\n.github" >> .prettierignore - run: npm run fmt # Prevent the prettierignore change from being committed. - run: git checkout .prettierignore diff --git a/.prettierignore b/.prettierignore index 5ae2c1f2b3..2bd1eb1157 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,2 @@ node_modules/ -doc/api \ No newline at end of file +doc/api