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