Skip to content

Commit c8a6b97

Browse files
PascalThuetclaude
andcommitted
ci: add build:dist for deploys and path filters for doc-only changes
- Add build:dist script (tsc + webpack, skips tests and lint) for use in deploy workflows where code is already verified. - Update deploy.yml to use build:dist instead of build. - Add paths-ignore to verify_pull_request and verify_branch so that changes limited to markdown files, docs/, proposals/, or LICENSES/ do not trigger CI builds. Refs Dash-Industry-Forum#5004 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d4afee5 commit c8a6b97

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup dash.js
3131
uses: ./.github/actions/setup-dashjs
3232
- name: Run build
33-
run: npm run build
33+
run: npm run build:dist
3434
- name: Find and Replace
3535
if: inputs.deploy_type == 'samples'
3636
uses: jacobtomlinson/gha-find-replace@v2

.github/workflows/verify_branch.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- '!development'
99
- '!v4_main'
1010
- '!v4_development'
11+
paths-ignore:
12+
- '*.md'
13+
- 'docs/**'
14+
- 'proposals/**'
15+
- 'LICENSES/**'
1116

1217
jobs:
1318
build_and_unit_test:

.github/workflows/verify_pull_request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
branches:
66
- 'development'
7+
paths-ignore:
8+
- '*.md'
9+
- 'docs/**'
10+
- 'proposals/**'
11+
- 'LICENSES/**'
712

813
jobs:
914
merge_build_and_unit_test:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"scripts": {
3030
"build": "npm run webpack-build-modern && npm run webpack-build-legacy",
31+
"build:dist": "rimraf dist && tsc && npm run webpack-build-modern && npm run webpack-build-legacy",
3132
"build-legacy": "npm run prebuild && npm run webpack-build-legacy",
3233
"build-modern": "npm run prebuild && npm run webpack-build-modern",
3334
"dev": "tsc && webpack --config build/webpack/modern/webpack.modern.dev.cjs --mode development --watch --progress",

0 commit comments

Comments
 (0)