Skip to content

Commit 4c93f58

Browse files
committed
Fix scripts
1 parent 02bfb07 commit 4c93f58

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/ci-build.yml

+17
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ jobs:
5050
working-directory: addon
5151
run: pnpm tsc --noEmit
5252

53+
docs-gen:
54+
timeout-minutes: 5
55+
name: Docs Generation
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: pnpm/action-setup@v4
61+
- uses: actions/setup-node@v4
62+
with:
63+
cache: pnpm
64+
- name: Install Dependencies
65+
run: pnpm install
66+
- run: pnpm build:docs
67+
- run: echo "If this fails, docs gen is out of sync. Please run 'pnpm build:docs'" && git diff --exit-code
68+
69+
5370
floating:
5471
name: "Floating Dependencies"
5572
runs-on: ubuntu-latest

addon/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"prepack": "cp ../README.md ./ && pnpm build",
3030
"postpack": "rimraf addon-test-support/**/*.js public-types",
3131
"clean": "git clean -x -f",
32-
"docs": "pnpm build && documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml --markdown-toc-max-depth 3 -f md -o API.md",
32+
"docs": "pnpm build && documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml --markdown-toc-max-depth 3 -f md -o ../API.md",
3333
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
3434
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
3535
"lint:js": "eslint --cache .",

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"repository": "https://github.com/emberjs/ember-test-helpers",
66
"license": "(MIT OR Apache-2.0)",
77
"scripts": {
8+
"build:docs": "pnpm --filter '@ember/test-helpers' run docs",
89
"lint": "pnpm --filter '*' lint",
910
"lint:fix": "pnpm --filter '*' lint:fix",
1011
"test": "pnpm --filter '*' test"

0 commit comments

Comments
 (0)