diff options
Diffstat (limited to '.github/workflows/format.yaml')
| -rw-r--r-- | .github/workflows/format.yaml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index aeb8118..7610e0b 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -14,17 +14,12 @@ jobs: - name: checkout repository uses: actions/checkout@v3 - - name: setup node - uses: actions/setup-node@v3 - - - name: install prettier - run: | - npm install -g prettier + - name: install Nix + uses: cachix/install-nix-action@v20 - name: format run: | - prettier --editorconfig -w --parser html ./**/*.njk - prettier --editorconfig -w . + nix run nixpkgs#nodePackages.prettier -- --editorconfig -w . - name: add and commit uses: EndBug/add-and-commit@v9 |
