Skip to content

Commit

Permalink
⬆️ chore: update npm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed Aug 27, 2024
1 parent 6eb01a7 commit edf4e4d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/update-and-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch: # Allows manual triggering
push:
branches:
- master # Runs on pushes to the master branch
- master

jobs:
update-and-scan:
Expand All @@ -19,12 +19,21 @@ jobs:
- name: 🔧 Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # Using Node.js version 20
node-version: '20'

- name: 🗑️ Remove package-lock.json
run: rm -f package-lock.json

- name: 📦 Install npm-check-updates
run: npm install -g npm-check-updates

- name: ⬆️ Update dependencies in package.json
run: ncu -u

- name: 📦 Install dependencies
run: npm install

- name: ⬆️ Update all packages
- name: 📦 Update dependencies with legacy peer deps
run: npm update --legacy-peer-deps

- name: 🎭 Mask Debricked credentials
Expand All @@ -45,7 +54,7 @@ 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()
Expand Down

0 comments on commit edf4e4d

Please sign in to comment.