Skip to content

Prints out a cache key based on all the package.json + yarn.lock available in your yarn workspace

License

Notifications You must be signed in to change notification settings

flaviouk/monorepo-cache-key

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

monorepo-cache-key

- uses: actions/checkout@v2

- name: Get Cache Key
  uses: flaviouk/monorepo-cache-key@v1
  id: cache-key
  with:
    cache-prefix: foo-bar # This could be {os}-{node-version} for example

- name: Print Cache Key
  run: echo ${{ steps.cache-key.outputs.cacheKey }}

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run ncc and push the results:

$ npm run package
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1

Usage:

After testing you can create a v1 tag to reference the stable and latest V1 action

About

Prints out a cache key based on all the package.json + yarn.lock available in your yarn workspace

Topics

Resources

License

Stars

Watchers

Forks