Skip to content

Update NPM Dependencies #11

Update NPM Dependencies

Update NPM Dependencies #11

Workflow file for this run

name: Update NPM Dependencies
on:
schedule:
- cron: '0 7 * * *' # Runs every day at 7:00 AM
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
update-deps:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: make install
- name: Save check dependencies output (before)
id: check_deps_before
run: |
before=$(make check:deps || true)
run: echo "{before}={before}" >> $GITHUB_ENV
- name: Run make update
run: make update
- name: Run make check dependencies (after)
id: check_deps_after
run: |
after=$(make check:deps || true)
run: echo "{after}={after}" >> $GITHUB_ENV
- name: Create or Update Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: 'chore(deps): update npm dependencies'
body: 'Automated update of package-lock.json\n\nBefore Update:\n${{ env.before }}\n\nAfter Update:\n${{ env.after }}'
base: main
branch: update-npm-dependencies