Skip to content

Now supports running a pre-commit script.

Compare
Choose a tag to compare
@neverendingqs neverendingqs released this 24 Aug 00:05
· 14 commits to master since this release
f8da6e1

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