From 85ce3858b9e72782f0622b8d36db4a2ee7badec6 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Fri, 16 Dec 2022 16:49:49 +0100 Subject: [PATCH] fix: prep before lint --- .github/workflows/deploy.yml | 2 +- .github/workflows/frontend_build.yml | 2 +- frontend/package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c1068c0c2..c38cbcce2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -65,7 +65,7 @@ jobs: run: (cd frontend && pnpm install --frozen-lockfile) - name: Lint frontend - run: (cd frontend && pnpm lint:eslint) + run: (cd frontend && pnpm prep && pnpm lint:eslint) # - name: Sync forth and back with crowdin # uses: crowdin/github-action@1.4.0 diff --git a/.github/workflows/frontend_build.yml b/.github/workflows/frontend_build.yml index e9d4c9b20..9719d48dc 100644 --- a/.github/workflows/frontend_build.yml +++ b/.github/workflows/frontend_build.yml @@ -48,7 +48,7 @@ jobs: - name: Lint frontend env: CI: true - run: (cd frontend && pnpm lint:eslint) + run: (cd frontend && pnpm prep && pnpm lint:eslint) - name: Build frontend env: diff --git a/frontend/package.json b/frontend/package.json index 1158af2b7..e19041b12 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,7 @@ "generate": "nuxt generate", "preview": "nuxt preview", "previewBuild": "nuxt build && nuxt preview", + "prep": "nuxt prepapre", "lint:eslint": "eslint --ext \".js,.vue,.ts,.html\" --ignore-path .gitignore --fix .", "lint:prettier": "prettier -w .", "prepare": "cd .. && husky install frontend/.husky"