Skip to content

Commit 56207d8

Browse files
authored
fix(doc): Docs were no longer being built and deployed in CI (#1494)
1 parent 5d633df commit 56207d8

File tree

5 files changed

+18
-28
lines changed

5 files changed

+18
-28
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ env:
1111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1212
IS_OFFICIAL_REPO: ${{ github.repository == 'temporalio/sdk-typescript' }}
1313
# Is it the official main branch, or an official release branches?
14-
IS_MAIN_OR_RELEASE: |
15-
${{
16-
github.repository == 'temporalio/sdk-typescript'
17-
&& (github.ref == 'refs/heads/main'
18-
|| startsWith(github.ref, 'refs/tags/')
19-
|| startsWith(github.ref, 'refs/heads/releases'))
20-
&& github.event_name != 'pull_request'
21-
}}
14+
# AFAIK there's no way to break that line w/o introducing a trailing LF that breaks usage. Sorry.
15+
IS_MAIN_OR_RELEASE: ${{ github.repository == 'temporalio/sdk-typescript' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/releases')) && github.event_name != 'pull_request' }}
16+
2217
# Use these variables to force specific version of CLI/Time Skipping Server for SDK tests
2318
# TESTS_CLI_VERSION: 'v0.13.2'
2419
# TESTS_TIME_SKIPPING_SERVER_VERSION: 'v1.24.1'
@@ -105,7 +100,7 @@ jobs:
105100
prefix-key: corebridge-buildcache
106101
shared-key: ${{ matrix.platform }}
107102
env-vars: ''
108-
save-if: env.IS_MAIN_OR_RELEASE == 'true'
103+
save-if: ${{ env.IS_MAIN_OR_RELEASE == 'true' }}
109104

110105
- name: Compile rust code
111106
if: steps.cached-artifact.outputs.cache-hit != 'true'
@@ -203,7 +198,7 @@ jobs:
203198
- name: Save NPM cache
204199
uses: actions/cache/save@v4
205200
# Only saves NPM cache from the main branch, to reduce pressure on the cache (limited to 10GB).
206-
if: env.IS_MAIN_OR_RELEASE == 'true'
201+
if: ${{ env.IS_MAIN_OR_RELEASE == 'true' }}
207202
with:
208203
path: ${{ steps.npm-cache-dir.outputs.dir }}
209204
key: npm-main-${{ matrix.platform }}-${{ hashFiles('./package-lock.json') }}
@@ -571,7 +566,7 @@ jobs:
571566
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
572567

573568
- name: Deploy prod docs # TODO: only deploy prod docs when we publish a new version
574-
if: env.IS_MAIN_OR_RELEASE == 'true'
569+
if: ${{ env.IS_MAIN_OR_RELEASE == 'true' }}
575570
run: npx vercel deploy packages/docs/build -t ${{ secrets.VERCEL_TOKEN }} --name typescript --scope temporal --prod --yes
576571

577572
# FIXME: This is not working properly, and should probably be done only from the main branch anyway

.github/workflows/stress.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,9 @@ env:
4343
TEMPORAL_TESTING_MEM_LOG_DIR: /tmp/worker-mem-logs
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
REUSE_V8_CONTEXT: ${{ inputs.reuse-v8-context }}
46-
IS_MAIN_BRANCH: |
47-
${{
48-
github.repository == 'temporalio/sdk-typescript'
49-
&& (github.ref == 'refs/heads/main'
50-
|| startsWith(github.ref, 'refs/tags/')
51-
|| startsWith(github.ref, 'refs/heads/releases'))
52-
&& github.event_name != 'pull_request'
53-
}}
46+
# Is it the official main branch, or an official release branches?
47+
# AFAIK there's no way to break that line w/o introducing a trailing LF that breaks usage. Sorry.
48+
IS_MAIN_OR_RELEASE: ${{ github.repository == 'temporalio/sdk-typescript' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/releases')) && github.event_name != 'pull_request' }}
5449

5550
jobs:
5651
stress-test:
@@ -62,6 +57,7 @@ jobs:
6257
- uses: actions/checkout@v4
6358
with:
6459
submodules: recursive
60+
ref: ${{ inputs.ref }}
6561

6662
- name: Install Node
6763
uses: actions/setup-node@v4
@@ -99,7 +95,7 @@ jobs:
9995
prefix-key: corebridge-buildcache
10096
shared-key: linux-intel
10197
env-vars: ''
102-
save-if: env.IS_MAIN_BRANCH == 'true'
98+
save-if: ${{ env.IS_MAIN_OR_RELEASE == 'true' }}
10399

104100
- name: Download dependencies
105101
# Make up to 3 attempts to install NPM dependencies, to work around transient NPM errors

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lint.prune": "ts-prune --error -p tsconfig.prune.json --ignore \"used in module\" --skip \".d.ts\"",
3535
"format": "prettier --write . && lerna run --no-bail --stream format",
3636
"clean": "node ./scripts/clean.mjs",
37-
"docs": "lerna run --stream maybe-install-deps-and-build-docs"
37+
"docs": "cd packages/docs && npm run maybe-install-deps-and-build-docs"
3838
},
3939
"dependencies": {
4040
"@temporalio/client": "file:packages/client",

packages/docs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@temporalio/docs",
3-
"version": "1.9.3",
43
"private": true,
54
"scripts": {
65
"docusaurus": "docusaurus",

0 commit comments

Comments
 (0)