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 }}
Get Yarn Workspace Packages is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.