caffco/changed-packages-github-action

View on GitHub
action.yml

Summary

Maintainability
Test Coverage
name: 'Get Changed Packages'
description: 'Returns changed packages and those listed in your changesets'
author: 'Caff'
branding:
  icon: info
  color: red
inputs:
  base_branch:
    required: true
    description: 'Name of the base branch from which changes will be computed. Defaults to `main`.'
    default: 'main'
  repository_path:
    required: true
    description: 'Relative or absolute path to the repository. Defaults to working directory.'
    default: '.'
outputs:
  packages_affected_by_release_plan:
    description: 'List of package names affected by the release plan defined by your changesets'
  changed_packages:
    description: 'List of package names that have changes since base branch, regardless appearing in your changesets or not'
  changed_packages_without_changeset:
    description: 'List of package names that have changes since base branch and do not appear in your changesets'
  packages_versions_after_applying_release_plan:
    description: 'Dictionary of package name -> version reflecting the result of applying the release plan defined by your changesets'
  all_changed_packages_have_changeset:
    description: 'Boolean flag telling whether all changed packages appear in at least one changeset (`true`) or not'
runs:
  using: 'node20'
  main: 'dist/index.js'