From b9ff1ed47d00d88e112d4f7fbcf5100cc86426b8 Mon Sep 17 00:00:00 2001 From: aasim Date: Wed, 1 May 2024 14:01:20 -0400 Subject: [PATCH] trying to fix permissions error in github action --- .github/workflows/pr_ci_frontend.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr_ci_frontend.yaml b/.github/workflows/pr_ci_frontend.yaml index a1cfba6d4..63caa1843 100644 --- a/.github/workflows/pr_ci_frontend.yaml +++ b/.github/workflows/pr_ci_frontend.yaml @@ -23,6 +23,9 @@ jobs: - 5432:5432 steps: + - name: cleanup old checkout + run: chmod +w -R ${GITHUB_WORKSPACE}; rm -rf ${GITHUB_WORKSPACE}/*; + - name: Checkout uses: actions/checkout@v4 @@ -56,15 +59,16 @@ jobs: - name: Setup Node environment uses: actions/setup-node@v4 - #- name: Install dependencies via Yarn - #uses: borales/actions-yarn@v5 - #with: - #cmd: install - #dir: "frontend" - name: Install dependencies via Yarn - working-directory: ./frontend - run: | - sudo yarn install + uses: borales/actions-yarn@v5 + with: + cmd: install + dir: "frontend" + + #- name: Install dependencies via Yarn + #working-directory: ./frontend + #run: | + #sudo yarn install - name: Install Prettier run: yarn add prettier @@ -76,14 +80,14 @@ jobs: - name: Run Type Check if: always() - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: nuxi typecheck dir: "frontend" - name: Run eslint - Linting if: always() - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: eslint . --ext .js,.vue dir: "frontend"