Skip to content

Commit 5a43f3f

Browse files
authored
Update TS to 1.9.0 (#70)
1 parent a91f131 commit 5a43f3f

4 files changed

Lines changed: 382 additions & 351 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ jobs:
121121
- name: Run local scenario with worker
122122
run: ./temporal-omes run-scenario-with-worker --scenario workflow_with_single_noop_activity --log-level debug --language ts --embedded-server --iterations 5
123123
- name: Build worker image
124-
run: ./temporal-omes build-worker-image --language ts --version 1.9.0-rc.0 --tag-as-latest
124+
run: ./temporal-omes build-worker-image --language ts --version 1.9.0 --tag-as-latest
125125
- name: Run worker image
126-
run: docker run --rm --detach -i -p 10233:10233 omes:typescript-1.9.0-rc.0 --scenario workflow_with_single_noop_activity --log-level debug --language ts --run-id {{ github.run_id }} --embedded-server-address 0.0.0.0:10233
126+
run: docker run --rm --detach -i -p 10233:10233 omes:typescript-1.9.0 --scenario workflow_with_single_noop_activity --log-level debug --language ts --run-id {{ github.run_id }} --embedded-server-address 0.0.0.0:10233
127127
- name: Run scenario against image
128128
run: ./temporal-omes run-scenario --scenario workflow_with_single_noop_activity --log-level debug --server-address 127.0.0.1:10233 --run-id {{ github.run_id }} --connect-timeout 1m --iterations 5
129129

@@ -193,7 +193,7 @@ jobs:
193193
do-push: true
194194
as-latest: true
195195
go-version: 'v1.25.2-0.20231129171107-288a04f72145'
196-
ts-version: 'v1.9.0-rc.0'
196+
ts-version: 'v1.9.0'
197197
java-version: 'v1.22.3'
198198
py-version: 'v1.4.0'
199199
dotnet-version: 'v1.0.0'

cmd/prepare_worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (b *workerBuilder) buildTypeScript(ctx context.Context, baseDir string) (sd
175175
}
176176
for _, line := range strings.Split(string(b), "\n") {
177177
line = strings.TrimSpace(line)
178-
if strings.HasPrefix(line, "\"temporalio\":") {
178+
if strings.HasPrefix(line, "\"temporalio:\"") || strings.HasPrefix(line, "\"@temporalio/") {
179179
split := strings.Split(line, "\"")
180180
version = split[len(split)-2]
181181
break

0 commit comments

Comments
 (0)