Skip to content

Commit

Permalink
⬆️npm-update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed Aug 28, 2024
1 parent de8ad9d commit 46a3717
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/npm-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: 🚀 Dependency Update and Vulnerability Scan

on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
- cron: '0 2 * * *' # Runs daily at 2 AM UTC
workflow_dispatch: # Allows manual triggering
push:
branches:
- master
- master # Runs on pushes to the master branch

jobs:
update-and-scan:
Expand All @@ -29,9 +29,10 @@ jobs:

- name: ⬆️ Update all packages
run: |
ncu -u
npm install
ncu -u # Update package.json with the latest versions
npm install --legacy-peer-deps # Install dependencies with legacy peer deps handling
# Since we're using --legacy-peer-deps above, the step below is likely redundant, but keeping for thoroughness
- name: 📦 Update dependencies with legacy peer deps
run: npm update --legacy-peer-deps

Expand Down Expand Up @@ -64,4 +65,4 @@ jobs:
- name: 🚀 Push changes
if: success()
run: git push
run: git push

0 comments on commit 46a3717

Please sign in to comment.