Skip to content

Commit

Permalink
ci: check for API changes in @digdir/designsystemet
Browse files Browse the repository at this point in the history
  • Loading branch information
unekinn committed Nov 8, 2024
1 parent 7a6d74f commit a522cf7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Test CLI (create tokens, then build the theme)
run: yarn test:cli

- name: CLI - Check for changes in the API
run: yarn report:cli-api

- name: Install Playwright
run: npx playwright install --with-deps
- name: Build storybook
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"types:storefront": "yarn workspace storefront types",
"version-packages": "changeset version",
"publish": "yarn build && changeset publish",
"chromatic": "yarn workspace @designsystemet/storybook chromatic"
"chromatic": "yarn workspace @designsystemet/storybook chromatic",
"report:cli-api": "yarn workspace @digdir/designsystemet api-report"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"test": "yarn test:tokens-create-and-build",
"clean": "rimraf dist",
"clean:theme": "yarn workspace @digdir/designsystemet-theme clean",
"update:template": "tsx ./src/tokens/template.ts"
"update:template": "tsx ./src/tokens/template.ts",
"api-report": "api-extractor run"
},
"dependencies": {
"@adobe/leonardo-contrast-colors": "^1.0.0",
Expand Down

0 comments on commit a522cf7

Please sign in to comment.