Skip to content

caffco/yarn-workspace-packages-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Maintainability Test Coverage

Yarn Workspace Packages

Returns the packages defined in a Yarn workspace.

About

This action works with Yarn workspaces and offers an easy way to get the list of packages defined in your workspace.

Usage

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 }}

About

Returns the packages defined in a Yarn workspace.

Resources

License

Stars

Watchers

Forks

Packages

No packages published