From e515d697f345669564ce36052aea953624d0b6f1 Mon Sep 17 00:00:00 2001 From: wappon28dev Date: Tue, 2 Jul 2024 23:04:55 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20=E3=82=B9=E3=82=AF=E3=83=AA?= =?UTF-8?q?=E3=83=97=E3=83=88=E3=81=AE=E9=A0=86=E7=95=AA=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 7 +++++-- package.json | 2 +- scripts/{crate-empty-mocks.mjs => create-empty-mocks.mjs} | 0 3 files changed, 6 insertions(+), 3 deletions(-) rename scripts/{crate-empty-mocks.mjs => create-empty-mocks.mjs} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f915b24..06de94b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,8 +28,8 @@ jobs: - name: 🎉 Install project dependencies run: npm install - - name: ✅ Check code format/style - run: npm run test + - name: 🔧 Create Empty Mocks + run: npm run create-empty-mocks - name: 🏗️ Build app run: npm run build @@ -37,6 +37,9 @@ jobs: PUBLIC_MICROCMS_SERVICE_DOMAIN: ${{ secrets.PUBLIC_MICROCMS_SERVICE_DOMAIN }} PUBLIC_MICROCMS_API_KEY: ${{ secrets.PUBLIC_MICROCMS_API_KEY }} + - name: ✅ Check code format/style + run: npm run test + - name: 📂 Sync files uses: SamKirkland/FTP-Deploy-Action@4.0.0 with: diff --git a/package.json b/package.json index d2d44c5..95ac23e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint": "eslint ./src/ && markuplint './src/**/*.svelte'", "generate:cms": "npx --yes microcms-typescript schemas src/lib/utils/types/microcms.ts", "test": "tsc && prettier --check ./src/ --check && npm run lint --check && vitest --run", - "crate-empty-mocks": "node scripts/crate-empty-mocks.mjs", + "create-empty-mocks": "node scripts/create-empty-mocks.mjs", "clean": "npx --yes rimraf ./node_modules ./dist ./.sveltekit" }, "devDependencies": { diff --git a/scripts/crate-empty-mocks.mjs b/scripts/create-empty-mocks.mjs similarity index 100% rename from scripts/crate-empty-mocks.mjs rename to scripts/create-empty-mocks.mjs