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
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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