You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run: pnpm --filter @equinor/eds-tokens exec studio tokens pull --ci
73
+
- name: Create Pull Request
74
+
uses: peter-evans/create-pull-request@v8
75
+
with:
76
+
commit-message: 'chore: update tokens from Tokens Studio release'
77
+
title: 'chore: update tokens from Tokens Studio release'
78
+
body: 'Automated pull of the token state after a Tokens Studio release, via the CI integration and `studio tokens pull`. See `packages/eds-tokens/.studio.json` for the configured sources.'
79
+
branch: tokens-studio-release
80
+
# This workflow runs unattended (release-triggered) and the PR it
81
+
# creates gets no CI runs, so a failed pull must not be silent
Copy file name to clipboardExpand all lines: documentation/agent-instructions/TOKENS_STUDIO.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,21 +30,26 @@ The CLI is `@tokens-studio/studio-cli` (binary name `studio`), installed as a **
30
30
31
31
## Configuration (`.studio.json`)
32
32
33
-
`studio config init` creates `.studio.json`; `studio config add <alias>` adds a token source (interactively, or with `--project <uuid> --branch <name> --format <fmt> --output <dir>`). The file maps aliases to sources:
33
+
`studio config init` creates `.studio.json`; `studio config add <alias>` adds a token source (interactively, or with `--project <uuid> --branch <name> --format <fmt> --output <dir>`). The file maps aliases to sources under a `configurations` key:
-Sources can reference a `branch`, a `release`, or a `tag` — pin to a release for reproducible builds.
52
+
-The `ref` can reference a `branch`, a `release`, or a `tag` — pin to a release for reproducible builds.
48
53
- Pull formats are `raw` (default), `dtcg`, and `css`. **There is no TypeScript pull format** — pull raw/DTCG JSON and generate TS locally, as the existing Style Dictionary build does for `build/ts/*`.
49
54
-`studio config show` displays the config; `studio config remove <alias>` (alias `rm`) removes a source from `.studio.json`. It does **not** delete already-pulled token files — clean those up manually.
50
55
-`.studio.json` is meant to be committed for team consistency.
@@ -100,4 +105,4 @@ studio
100
105
└── flags --host --json --no-color --verbose
101
106
```
102
107
103
-
Known state in this repo at snapshot time: CLI installed as a devDependency of `packages/eds-tokens` and approved in `onlyBuiltDependencies`; no `.studio.json`committed yet.
108
+
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` and is pulled in CI by `.github/workflows/tokens_studio_release.yaml`, triggered by the Tokens Studio CI integration (`repository_dispatch`, event type `tokens-release`) on every platform release. CI auth is OIDC (`id-token: write` + `--ci`) — no service token stored.
0 commit comments