post-merge:
  commands:
    # If you have set 'git config pull.rebase true', use the 'post-rewrite' hook instead of the 'post-merge' hook.
    update-node-modules:
      files: git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD
      glob: '**/{package.json,pnpm-lock.yaml,yarn.lock,package-lock.json}'
      run: |
        if ! command -v ni > /dev/null 2>&1; then
          echo "🥊 @antfu/ni doesn't exist, continuing with install"
          npm i -g @antfu/ni
        fi

        ni
