Skip to content

Commit

Permalink
trying to fix permissions error in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimsyed committed May 1, 2024
1 parent 16aae7f commit b9ff1ed
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/pr_ci_frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit b9ff1ed

Please sign in to comment.