Returns the packages defined in a Yarn workspace.
This action works with Yarn workspaces and offers an easy way to get the list of packages defined in your workspace.
name: Get packages
on: [push, pull_request]
jobs:
get-workspace-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get packages in workspace
uses: caffco/yarn-workspace-pacakges-github-action@v1.0.0
with:
repository_path: .
run-tests:
runs-on: ubuntu-latest
steps:
- name: Print packages
needs: get-workspace-packages
run: echo ${{ needs.get-workspace-packages.outputs.package_names }}