forked from stolostron/console
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1021 Bytes
/
backend-upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Backend Upgrade
on:
workflow_dispatch:
schedule:
- cron: '0 9 * * 0'
jobs:
npm-check-updates:
if: (github.event_name == 'schedule' && github.repository == 'stolostron/console') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm i -g npm-check-updates
- name: npm-check-updates --target minor
run: ncu -e 2 -t minor > /dev/null 2>&1 || ncu --doctor -u -t minor
- run: npm audit fix
- run: npm test
- uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
message: Upgraded package dependencies