Skip to content

Commit 6812d42

Browse files
authored
chore: rename Tokens Studio test source to production-shaped layout (#5179)
1 parent ebed449 commit 6812d42

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/tokens_studio_backup.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ jobs:
8888
working-directory: packages/eds-tokens
8989
run: ~/studio-cli/node_modules/.bin/studio tokens pull --ci --verbose
9090
# Aliases and output dirs are read from .studio.json so a config
91-
# rename (e.g. the planned eds-test-3 → eds) never requires a
92-
# workflow change. Each source lands at backup/<alias>/;
93-
# --delete keeps removals visible in the diff
91+
# rename (e.g. eds-test-3 → eds) never requires a workflow
92+
# change — but removed aliases are never cleaned up; delete
93+
# backup/<old-alias>/ on the backup branch manually. Each source
94+
# lands at backup/<alias>/; --delete keeps removals visible in
95+
# the diff
9496
- name: Sync pulled sources into the backup branch
9597
run: |
9698
jq -r '.configurations | to_entries[] | "\(.key)\t\(.value.output)"' packages/eds-tokens/.studio.json |

documentation/agent-instructions/TOKENS_STUDIO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ studio
134134
└── flags --host --json --no-color --verbose
135135
```
136136

137-
Known state in this repo at snapshot time: CLI installed as a devDependency of `packages/eds-tokens` and approved in `onlyBuiltDependencies`. `.studio.json` lives in `packages/eds-tokens` (single source alias `eds-test-3`, project `4952a007-699a-4124-a043-124e80cc28d6`, branch `main`, format raw — the test-phase alias/output is due a production-shaped rename). Two saved export configurations on the project: `EDS-CSS` (css, id `39d37416-632b-4f04-b49b-cfaec63e3baa`, prefix `eds`, split layout, density base comfortable) and `EDS-DTCG` (dtcg, id `019463d4-9bef-4e37-9425-6de80eec87c8`). CI auth is OIDC (`id-token: write` + `--ci`) — no service token stored. Two workflows use it: `tokens_studio_release.yaml` (release-triggered, § The release pipeline) and `tokens_studio_backup.yaml` (hourly cron, § Backup & recovery).
137+
Known state in this repo at snapshot time: CLI installed as a devDependency of `packages/eds-tokens` and approved in `onlyBuiltDependencies`. `.studio.json` lives in `packages/eds-tokens` (single source alias `eds`, project `4952a007-699a-4124-a043-124e80cc28d6`, branch `main`, format raw, output `src/tokens/raw`). Two saved export configurations on the project: `EDS-CSS` (css, id `39d37416-632b-4f04-b49b-cfaec63e3baa`, prefix `eds`, split layout, density base comfortable) and `EDS-DTCG` (dtcg, id `019463d4-9bef-4e37-9425-6de80eec87c8`). CI auth is OIDC (`id-token: write` + `--ci`) — no service token stored. Two workflows use it: `tokens_studio_release.yaml` (release-triggered, § The release pipeline) and `tokens_studio_backup.yaml` (hourly cron, § Backup & recovery).

packages/eds-tokens/.studio.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"$schema": "https://tokens.studio/schema/cli",
33
"configurations": {
4-
"eds-test-3": {
4+
"eds": {
55
"project": "4952a007-699a-4124-a043-124e80cc28d6",
66
"ref": {
77
"type": "branch",
88
"name": "main"
99
},
10-
"output": "src/tokens/eds-test-3",
10+
"output": "src/tokens/raw",
1111
"format": "raw"
1212
}
1313
}

packages/eds-tokens/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Design tokens package — CSS variables, JSON, and JS/TS outputs consumed by EDS
44

55
## Two pipelines coexist
66

7-
The **legacy pipeline** below (Figma REST sync + Style Dictionary) still owns everything the package *publishes* (`build/`, the `exports` map). The **new Tokens Studio pipeline** writes generated output to `src/tokens/{<alias>,css,dtcg,ts}` via `.github/workflows/tokens_studio_release.yaml` — those directories are **generated, never edit them by hand**, and are not yet wired into the `exports` map. The TS modules are produced by `pnpm run generate:ts-tokens` (`scripts/generate-ts-tokens.mjs` — DTCG export for structure + CSS export for evaluated values; the script header documents the mechanics). Canonical pipeline doc: [`documentation/agent-instructions/TOKENS_STUDIO.md`](../../documentation/agent-instructions/TOKENS_STUDIO.md).
7+
The **legacy pipeline** below (Figma REST sync + Style Dictionary) still owns everything the package *publishes* (`build/`, the `exports` map). The **new Tokens Studio pipeline** writes generated output to `src/tokens/{raw,css,dtcg,ts}` via `.github/workflows/tokens_studio_release.yaml` — those directories are **generated, never edit them by hand**, and are not yet wired into the `exports` map. The TS modules are produced by `pnpm run generate:ts-tokens` (`scripts/generate-ts-tokens.mjs` — DTCG export for structure + CSS export for evaluated values; the script header documents the mechanics). Canonical pipeline doc: [`documentation/agent-instructions/TOKENS_STUDIO.md`](../../documentation/agent-instructions/TOKENS_STUDIO.md).
88

99
## Build Pipeline (3 steps)
1010

packages/eds-tokens/src/tokens/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ changes. Fix token values in Tokens Studio instead.
88

99
| Directory | Content | Produced by |
1010
| ---------- | -------------------------------------- | ----------------------------------------------- |
11-
| `<alias>/` | Raw token sets (JSON, with `{alias}`s) | `studio tokens pull` (sources in `.studio.json`) |
11+
| `raw/` | Raw token sets (JSON, with `{alias}`s) | `studio tokens pull` (sources in `.studio.json`) |
1212
| `css/` | CSS custom properties | `studio exports run` (EDS-CSS configuration) |
1313
| `dtcg/` | DTCG interchange JSON | `studio exports run` (EDS-DTCG configuration) |
1414
| `ts/` | TypeScript modules | `pnpm run generate:ts-tokens` (combines `dtcg/` + `css/`) |

0 commit comments

Comments
 (0)