Skip to content

Commit

Permalink
trying to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Apr 18, 2024
1 parent 722eaa7 commit 7f81e64
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/a11y-contrast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Install dependencies
run: npm ci --no-audit --no-fund --ignore-scripts

- name: Build tokens
run: npm run build
- name: Build v8 tokens
run: npm run build:v8

- name: Run required checks
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
- name: Build v1 tokens
run: npm run build

- name: Build v8 tokens
- name: Build v8 tokens & fallbacks
run: npm run build:v8

- name: Build fallbacks
run: npm run build:fallbacks

- name: Code linting check
run: npm run lint

Expand All @@ -56,6 +59,8 @@ jobs:
run: npm ci
- name: Build v8 tokens
run: npm run build:v8
- name: Build fallbacks
run: npm run build:fallbacks
- name: Build storybook
working-directory: docs/storybook
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
with:
node_version: 20
install: npm ci --legacy-peer-deps --no-audit --no-fund && npm run install:storybook
build: npm run build && cd docs/storybook && npm run build:prod
build: npm run build && npm run build:next && cd docs/storybook && npm run build:prod
output_dir: docs/public

2 changes: 1 addition & 1 deletion .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
node_version: 20
install: npm ci --no-audit --no-fund --ignore-scripts && npm run install:storybook
build: npm run build && cd docs/storybook && npm run build:preview
build: npm run build && npm run build:next && cd docs/storybook && npm run build:preview
output_dir: docs/public

post_storybook:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
node-version: 20

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

- name: Build tokens
run: npm run build

- name: Build v8 tokens
run: npm run build:v8

- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release_candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
cache: 'npm'

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

- name: Build tokens
run: npm run build

- name: Build tokens v8
run: npm run build:v8

- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@
},
"homepage": "https://github.com/primer/primitives#readme",
"scripts": {
"build": "npm run build:v8 && npm run build:fallbacks && npm run build:figma",
"build": "ts-node ./scripts/build.ts && tsc --project tsconfig.build.json",
"build:next": "npm run build:v8 && npm run build:fallbacks && npm run build:figma",
"build:v8": "ts-node ./scripts/buildTokens.ts",
"build:fallbacks": "ts-node ./scripts/buildFallbacks.ts",
"build:figma": "ts-node scripts/buildFigma.ts",
"build:tokens": "node -e \"require('./build')._init()\"",
"build:new-tokens": "npm run build:tokens && npm run build",
"tokenJson:check": "ts-node scripts/diffThemes.ts && ts-node scripts/diffTokenProps.ts",
"contrast:check": "ts-node scripts/color-contrast.ts",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
Expand Down

0 comments on commit 7f81e64

Please sign in to comment.