Skip to content

Commit

Permalink
[fix]: install only dev dependencies in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sanam2405 committed Dec 30, 2023
1 parent e9fadfc commit e9a1fcb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 21.1.0

- name: Install dependencies
run: npm ci
run: npm ci --only=dev

- name: Run ESLint
run: npm run eslint:github-action
Expand All @@ -31,7 +31,7 @@ jobs:
run: |
npm run eslint:github-action || echo 'failed'
echo "::set-output name=eslint-status::${{ steps.eslint-status.outputs.stdout }}"
enforce-eslint:
name: Enforce ESLint
needs: eslint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 21.1.0

# Install the dependencies
- name: Install dependencies
run: npm ci
run: npm ci --only=dev

# Check Prettier formatting
- name: Check Prettier formatting
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"events": "^3.3.0",
"os-browserify": "^0.3.0",
"parcel": "^2.10.3",
Expand Down

0 comments on commit e9a1fcb

Please sign in to comment.