- 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 }}
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
After testing you can create a v1 tag to reference the stable and latest V1 action