Skip to content

Commit 92b14bf

Browse files
trying to fix build
1 parent 8537e3b commit 92b14bf

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

.github/workflows/a11y-contrast.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci --no-audit --no-fund --ignore-scripts
3030

31-
- name: Build tokens
32-
run: npm run build
31+
- name: Build v8 tokens
32+
run: npm run build:v8
3333

3434
- name: Run required checks
3535
run: |

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ jobs:
2727
- name: Build v1 tokens
2828
run: npm run build
2929

30-
- name: Build v8 tokens
30+
- name: Build v8 tokens & fallbacks
3131
run: npm run build:v8
3232

33+
- name: Build fallbacks
34+
run: npm run build:fallbacks
35+
3336
- name: Code linting check
3437
run: npm run lint
3538

@@ -56,6 +59,8 @@ jobs:
5659
run: npm ci
5760
- name: Build v8 tokens
5861
run: npm run build:v8
62+
- name: Build fallbacks
63+
run: npm run build:fallbacks
5964
- name: Build storybook
6065
working-directory: docs/storybook
6166
run: |

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
with:
1818
node_version: 20
1919
install: npm ci --legacy-peer-deps --no-audit --no-fund && npm run install:storybook
20-
build: npm run build && cd docs/storybook && npm run build:prod
20+
build: npm run build && npm run build:next && cd docs/storybook && npm run build:prod
2121
output_dir: docs/public
2222

.github/workflows/deploy_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
node_version: 20
1818
install: npm ci --no-audit --no-fund --ignore-scripts && npm run install:storybook
19-
build: npm run build && cd docs/storybook && npm run build:preview
19+
build: npm run build && npm run build:next && cd docs/storybook && npm run build:preview
2020
output_dir: docs/public
2121

2222
post_storybook:

.github/workflows/release_canary.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ jobs:
2525
node-version: 20
2626

2727
- name: Install dependencies
28-
run: npm ci --legacy-peer-deps --no-audit --no-fund --include=dev
28+
run: npm ci --no-audit --no-fund --include=dev
2929

3030
- name: Build tokens
3131
run: npm run build
3232

33+
- name: Build v8 tokens
34+
run: npm run build:v8
35+
3336
- name: Create .npmrc
3437
run: |
3538
cat << EOF > "$HOME/.npmrc"

.github/workflows/release_candidate.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ jobs:
2424
cache: 'npm'
2525

2626
- name: Install dependencies
27-
run: npm ci --legacy-peer-deps
27+
run: npm ci --no-audit --no-fund --include=dev
2828

2929
- name: Build tokens
3030
run: npm run build
3131

32+
- name: Build tokens v8
33+
run: npm run build:v8
34+
3235
- name: Create .npmrc
3336
run: |
3437
cat << EOF > "$HOME/.npmrc"

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@
2828
},
2929
"homepage": "https://github.com/primer/primitives#readme",
3030
"scripts": {
31-
"build": "npm run build:v8 && npm run build:fallbacks && npm run build:figma",
31+
"build": "ts-node ./scripts/build.ts && tsc --project tsconfig.build.json",
32+
"build:next": "npm run build:v8 && npm run build:fallbacks && npm run build:figma",
3233
"build:v8": "ts-node ./scripts/buildTokens.ts",
3334
"build:fallbacks": "ts-node ./scripts/buildFallbacks.ts",
3435
"build:figma": "ts-node scripts/buildFigma.ts",
35-
"build:tokens": "node -e \"require('./build')._init()\"",
36-
"build:new-tokens": "npm run build:tokens && npm run build",
3736
"tokenJson:check": "ts-node scripts/diffThemes.ts && ts-node scripts/diffTokenProps.ts",
3837
"contrast:check": "ts-node scripts/color-contrast.ts",
3938
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",

0 commit comments

Comments
 (0)