Pre-commit script input details:
pre-commit-script:
description: A command to run before committing the dependency changes (e.g. npm run build)
Example usage:
name: Scheduled dependencies update
on:
schedule:
- cron: '0 15 * * 2'
workflow_dispatch:
jobs:
update-deps:
name: Update Node dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: neverendingqs/gh-action-node-update-deps@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
bump-version: patch
package-manager: yarn
pre-commit-script: npm run build