From b5e75a45db2041308e28a35c96464b8b9fcdbc5f Mon Sep 17 00:00:00 2001 From: wangbill Date: Wed, 29 Jul 2026 15:42:57 -0700 Subject: [PATCH] build(release): add npm publishConfig to all three packages Split out of #335 as a standalone, independently reviewable change. Adds `publishConfig.registry` to all three package.json files, `publishConfig.access: "public"` to the two scoped packages (@microsoft/durabletask-js and @microsoft/durabletask-js-azuremanaged), and a `prepublishOnly` guard to core. This ensures the packages publish to the public npm registry during release. Content is byte-identical to the CI-green #335 branch at 8501bc0; this is a pure re-partition with no behavior change. Smallest of the four split PRs and the most urgent for publishing. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d86f5f69-4e1a-4c1d-b017-5e290c85cc05 --- packages/azure-functions-durable/package.json | 3 +++ packages/durabletask-js-azuremanaged/package.json | 4 ++++ packages/durabletask-js/package.json | 7 ++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/azure-functions-durable/package.json b/packages/azure-functions-durable/package.json index 5a4206a5..f333afa5 100644 --- a/packages/azure-functions-durable/package.json +++ b/packages/azure-functions-durable/package.json @@ -44,6 +44,9 @@ "url": "https://github.com/microsoft/durabletask-js/issues" }, "homepage": "https://github.com/microsoft/durabletask-js/tree/main/packages/azure-functions-durable#readme", + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, "engines": { "node": ">=22.0.0" }, diff --git a/packages/durabletask-js-azuremanaged/package.json b/packages/durabletask-js-azuremanaged/package.json index c7f7f6b4..6b04d399 100644 --- a/packages/durabletask-js-azuremanaged/package.json +++ b/packages/durabletask-js-azuremanaged/package.json @@ -43,6 +43,10 @@ "url": "https://github.com/microsoft/durabletask-js/issues" }, "homepage": "https://github.com/microsoft/durabletask-js/tree/main/extensions/durabletask-js-azuremanaged#readme", + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, "engines": { "node": ">=22.0.0" }, diff --git a/packages/durabletask-js/package.json b/packages/durabletask-js/package.json index 598a96c9..44805cf8 100644 --- a/packages/durabletask-js/package.json +++ b/packages/durabletask-js/package.json @@ -15,7 +15,8 @@ "prebuild": "node -p \"'// Auto-generated by prebuild\\nexport const SDK_VERSION = ' + JSON.stringify(require('./package.json').version) + ';\\nexport const SDK_PACKAGE_NAME = ' + JSON.stringify(require('./package.json').name) + ';'\" > src/version.ts", "build": "npm run prebuild && npm run clean && tsc -p tsconfig.build.json && npm run copy-proto", "test": "jest --runInBand --detectOpenHandles", - "test:unit": "jest test --runInBand --detectOpenHandles" + "test:unit": "jest test --runInBand --detectOpenHandles", + "prepublishOnly": "npm run build && npm run test" }, "engines": { "node": ">=22.0.0" @@ -37,6 +38,10 @@ "url": "https://github.com/microsoft/durabletask-js/issues" }, "homepage": "https://github.com/microsoft/durabletask-js#readme", + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, "dependencies": { "@grpc/grpc-js": "^1.14.4", "google-protobuf": "^3.21.2"