Skip to content

Frontend Upgrade

Frontend Upgrade #89

name: Frontend Upgrade
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * 0'
jobs:
npm-check-updates:
if: (github.event_name == 'schedule' && github.repository == 'stolostron/console') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npx npm-check-updates --doctor --upgrade --target minor --reject $SKIP
env:
SKIP: '@openshift-console/dynamic-plugin-sdk,@openshift-console/dynamic-plugin-sdk-webpack,@apollo/client'
- run: npm audit fix
- run: npm test
- uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
message: Upgraded package dependencies