Skip to content

A TurboRepo local cache server which uploads artifact cache to GH artifacts.

Notifications You must be signed in to change notification settings

moltar/turborepo-gh-artifacts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TurboRepo Github Artifacts action

This action allows you use Github artifacts as TurboRepo remote cache server.

How it works?

It's starts a local TurboRepo server (on port 9080) and uses Github artifacts as a caching storage.

Setup

  1. Add in your workflow.yml the 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 }}
  1. 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 😋.

Action inputs

The action has 2 required inputs:

  1. repo-token - A Github token with repo permission, usually the default secrets.GITHUB_TOKEN is enough.
  2. server-token - An auth token to ensure that your code interacting with the local server.

Working Example

Working example of the entire setup, based on npx create-turbo@latest.

Useful Links

About

A TurboRepo local cache server which uploads artifact cache to GH artifacts.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.3%
  • JavaScript 0.7%