Skip to content

Commit

Permalink
Update ⬆️npm-upgrade.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 authored Nov 5, 2024
1 parent 7c431c1 commit 64476d4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/⬆️npm-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: 🚀 Dependency Update and Vulnerability Scan

on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
- cron: '0 2 * * 0' # Runs weekly on Sunday at 2 a.m. UTC
workflow_dispatch: # Allows manual triggering
push:
branches:
- main
Expand All @@ -27,11 +27,10 @@ jobs:
- name: 📦 Install npm-check-updates
run: npm install -g npm-check-updates

- name: ⬆️ Update all packages except ESLint
- name: ⬆️ Update all npm packages
run: |
ncu -x eslint -u
ncu -u
npm install
npm install eslint@8.57.0 --save-dev
- name: 📦 Update dependencies with legacy peer deps
run: npm update --legacy-peer-deps
Expand All @@ -43,8 +42,7 @@ jobs:
run: npm run test

- name: 🎭 Mask Debricked credentials
run: |
echo "::add-mask::${{ secrets.DEBRICKED_TOKEN }}"
run: echo "::add-mask::${{ secrets.DEBRICKED_TOKEN }}"

- name: Install Debricked CLI
run: |
Expand All @@ -61,8 +59,9 @@ jobs:
git config --local user.name "Debugging Duck 🦆"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff-index --quiet HEAD || git commit -m "⬆️ update all npm dependencies except ESLint ⬆️"
git diff-index --quiet HEAD || git commit -m "⬆️ update all npm dependencies ⬆️"
- name: 🚀 Push changes
if: success()
run: git push

0 comments on commit 64476d4

Please sign in to comment.