diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 431ba78..4bf3923 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -20,10 +20,13 @@ jobs: - name: Install Prettier run: | + cd frontend npm install --global prettier - name: Format with Prettier - run: prettier --write "**/*.{js,jsx,md,mdx,css,yaml}" + run: | + cd frontend + prettier --write "**/*.{js,jsx,md,mdx,css,yaml}" - uses: stefanzweifel/git-auto-commit-action@v5 with: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 26ef67b..a914b03 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,7 +19,11 @@ jobs: uses: actions/checkout@v2 - name: Install Dependencies - run: npm ci + run: | + cd frontend + npm ci - name: Code Linting - run: npm run lint + run: | + cd frontend + npm run lint