Skip to content

auto-update

auto-update #3

Workflow file for this run

name: Update npm dependencies
on:
schedule:
- cron: '30 12 4,18 * *'
workflow_dispatch:
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Update npm dependencies
run: |
npm version patch --no-git-tag-version
npm update
npm run build
npm run test --if-present
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
add: 'package*.json'
message: 'Bot: npm deps update'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}