This action allows you use Github artifacts as TurboRepo remote cache server.
It's starts a local TurboRepo server (on port 9080) and uses Github artifacts as a caching storage.
- Add in your
workflow.ymlthe following section before TurboRepo runs:
- name: TurboRepo local server
uses: felixmosh/turborepo-gh-artifacts@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}- Make turbo repo work with the local server
- name: Build
run: yarn build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="foo"That's it 😋.
The action has 2 required inputs:
repo-token- A Github token withrepopermission, usually the defaultsecrets.GITHUB_TOKENis enough.server-token- An auth token to ensure that your code interacting with the local server.
Working example of the entire setup, based on npx create-turbo@latest.