diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9edf87c7..963d0f8a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -31,7 +31,9 @@ jobs: - name: Install dependencies run: npm i --ci - name: Run format:check - run: npm run format:check + run: | + npm run format:version + npm run format:check - name: Run lint run: npm run lint diff --git a/package.json b/package.json index 72f92de6..e52d3be3 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "postinstall": "next build --no-lint && nsm build --skip-build --only-api-files && npm run type-css", "format": "prettier --write --ignore-unknown .", "format:check": "prettier --check --ignore-unknown .", + "format:version": "prettier --version", "lint": "eslint .", "lint:fix": "eslint . --fix", "all:check": "npm run type:check && npm run type-css:check && npm run lint && npm run format:check && npm run test",