From 7fab7fd8c6502af988d6750380b7cbb0d8970a0b Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 23 Feb 2024 09:50:10 +0000 Subject: [PATCH] ci: fix formatting (#10210) --- .github/workflows/ci.yml | 3 --- .github/workflows/format.yml | 2 +- package.json | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acca6a0c11..5b748c3adf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,9 +97,6 @@ jobs: - name: Lint run: pnpm run lint - - name: Format Check - run: pnpm run format:ci - test: name: "Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})" runs-on: ${{ matrix.os }} diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 6b1b0e4ad8..9faaa18866 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,5 +11,5 @@ jobs: if: github.repository_owner == 'withastro' uses: withastro/automation/.github/workflows/format.yml@main with: - command: "format:ci" + command: "format" secrets: inherit diff --git a/package.json b/package.json index 83cef9f4db..e09110d40e 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,11 @@ "build:examples": "turbo run build --filter=\"@example/*\"", "dev": "turbo run dev --concurrency=40 --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"", "format": "pnpm run format:code && pnpm run format:imports", - "format:ci": "pnpm run format:code:check && pnpm run format:imports:check", + "format:ci": "pnpm run format:code:ci && pnpm run format:imports:ci", "format:code": "prettier -w \"**/*\" --ignore-unknown --cache", - "format:code:check": "prettier -w \"**/*\" --ignore-unknown --cache --check", + "format:code:ci": "prettier -w \"**/*\" --ignore-unknown --cache --check", "format:imports": "biome check --apply .", - "format:imports:check": "biome ci .", + "format:imports:ci": "biome ci .", "test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"", "test:match": "cd packages/astro && pnpm run test:match", "test:unit": "cd packages/astro && pnpm run test:unit",