Skip to content

Commit ae59931

Browse files
Add turbo cache to CI/CD (#1788)
1 parent f691c3e commit ae59931

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.cspell.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"mjml",
4242
"neverthrow",
4343
"nygard",
44+
"opentelemetry",
4445
"pactum",
4546
"parentbased",
4647
"pryce",
47-
"opentelemetry",
4848
"quickstart",
4949
"saleor",
5050
"sendgrid",
@@ -53,6 +53,7 @@
5353
"taxjar",
5454
"toolset",
5555
"traceidratio",
56+
"turborepo",
5657
"unobfuscated",
5758
"upserted",
5859
"upserting",

.github/workflows/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
APL: file
1717
MAILCHIMP_CLIENT_ID: "mocked"
1818
MAILCHIMP_CLIENT_SECRET: "mocked"
19+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
20+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
21+
TURBO_CACHE: "remote:rw"
1922
steps:
2023
- uses: actions/checkout@v4
2124
- name: Setup PNPM
@@ -43,6 +46,9 @@ jobs:
4346
runs-on: ubuntu-22.04
4447
env:
4548
HUSKY: 0
49+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
50+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
51+
TURBO_CACHE: "remote:rw"
4652
steps:
4753
- uses: actions/checkout@v4
4854
- name: Setup PNPM

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ After that run to install pnpm with proper version:
8585
corepack enable pnpm
8686
```
8787

88+
### Turborepo
89+
90+
This repository uses [Turborepo](https://turbo.build/) remote caching. If you are Saleor employee you can leverage it by running following commands in root of this repository:
91+
92+
```shell
93+
pnpm dlx turbo login
94+
pnpm dlx turbo link
95+
```
96+
8897
## ADR
8998

9099
This repository uses [architecture decision records](https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions) to document architectural decisions. You can find them in the `docs/adr` directory.

0 commit comments

Comments
 (0)