Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 767 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 767 Bytes

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