Skip to content

Commit 7f23ec6

Browse files
authored
ci: run Tokens Studio CSS export in release workflow (#5160)
* ci: run Tokens Studio CSS export in release workflow * ci: add --verbose to studio steps and soften export comment
1 parent d7cd40d commit 7f23ec6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/tokens_studio_release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,21 @@ jobs:
6969
if: steps.setup-cache.outputs.cache-hit != 'true'
7070
run: pnpm install --force
7171
- name: Pull tokens from Tokens Studio
72-
run: pnpm --filter @equinor/eds-tokens exec studio tokens pull --ci
72+
run: pnpm --filter @equinor/eds-tokens exec studio tokens pull --ci --verbose
73+
# Runs the saved "EDS" export configuration (CSS Variables) on the
74+
# platform and writes the generated CSS files. This output will
75+
# replace the local Style Dictionary build in the new pipeline —
76+
# it is not yet wired into the package exports map.
77+
# --verbose because the run is unattended and the resulting PR gets
78+
# no CI — the Actions log is the only place to diagnose a bad export
79+
- name: Run CSS export from Tokens Studio
80+
run: pnpm --filter @equinor/eds-tokens exec studio exports run EDS --ci --verbose --out src/tokens/css
7381
- name: Create Pull Request
7482
uses: peter-evans/create-pull-request@v8
7583
with:
7684
commit-message: 'chore: update tokens from Tokens Studio release'
7785
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.'
86+
body: 'Automated pull of the token state after a Tokens Studio release: raw token sets via `studio tokens pull` (sources in `packages/eds-tokens/.studio.json`) and generated CSS via `studio exports run EDS` into `packages/eds-tokens/src/tokens/css/`.'
7987
branch: tokens-studio-release
8088
# This workflow runs unattended (release-triggered) and the PR it
8189
# creates gets no CI runs, so a failed pull must not be silent

0 commit comments

Comments
 (0)