2025-02-06 11:09:18 +01:00
|
|
|
name: Check for Minor Dependency Updates
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *' # Runs every day at midnight (UTC)
|
|
|
|
workflow_dispatch: # Allows manual triggering
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-dependencies:
|
2025-02-06 11:13:43 +01:00
|
|
|
runs-on: docker
|
2025-02-06 11:09:18 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: '20' # Adjust the Node.js version as needed
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Check for Minor Updates
|
|
|
|
run: npx npm-check-updates --target minor
|
|
|
|
|
|
|
|
- name: Save ncu Results
|
|
|
|
run: |
|
|
|
|
npx npm-check-updates --target minor > ncu-report.txt
|
|
|
|
cat ncu-report.txt
|
|
|
|
|
|
|
|
- name: Upload Report as Artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: ncu-report
|
|
|
|
path: ncu-report.txt
|