From bed09aa46d2d2466b69b428b936b6bcea7d0c026 Mon Sep 17 00:00:00 2001 From: CrimsonTome Date: Sat, 17 Sep 2022 03:25:51 +0100 Subject: [PATCH] prettier node scripts and fix CI workflow --- .github/workflows/node CI.yml | 4 ---- package.json | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node CI.yml b/.github/workflows/node CI.yml index b13c00f..7e7a259 100644 --- a/.github/workflows/node CI.yml +++ b/.github/workflows/node CI.yml @@ -28,12 +28,8 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: -<<<<<<< HEAD node-version: '18.x' - name: run Prettier run: npx prettier --check . -======= - node-version: "18.x" ->>>>>>> 229a8cf (format all with prettier) - name: Run npm run: npm install && npm run build diff --git a/package.json b/package.json index b7b8da0..bf7e48d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "watch": "eleventy --watch", "serve": "eleventy --serve", "start": "eleventy --serve", - "debug": "DEBUG=* eleventy" + "debug": "DEBUG=* eleventy", + "prettier-write": "npx prettier --write --ignore-unknown .", + "prettier-check": "npx prettier --check ." }, "repository": { "type": "git",