@dbx-tools/projen 0.9.161 → 0.9.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -2
- package/package.json +6 -6
- package/src/release-context.ts +4 -0
- package/src/release.ts +2 -0
- package/tasks/release.ts +11 -3
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/projen";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.163";
|
|
7
7
|
export * as appkitWorkspace from "./src/appkit-workspace.ts";
|
|
8
8
|
export * as barrels from "./src/barrels.ts";
|
|
9
9
|
export * as bunApp from "./src/bun-app.ts";
|
|
@@ -85,7 +85,7 @@ export { PYTHON_NODE_RUNTIME_DISTRIBUTION, PYTHON_NODE_RUNTIME_MODULE, PYTHON_NO
|
|
|
85
85
|
export type { PythonNodeRuntimeOptions } from "./src/python-node-runtime.ts";
|
|
86
86
|
export { pythonDistributionPaths, publishPythonProjects, buildPythonProjects } from "./src/python-packaging.ts";
|
|
87
87
|
export { pythonProjectInfo, preparePythonProjectForPublication } from "./src/python-release.ts";
|
|
88
|
-
export { RELEASE_VERSION, RELEASE_WORKFLOW_FILE, PUBLIC_NPM_REGISTRY_URL, PUBLIC_PYPI_REGISTRY_URL, PUBLICATION_WAIT_TIMEOUT_SECONDS, PUBLICATION_WAIT_INTERVAL_SECONDS } from "./src/release-context.ts";
|
|
88
|
+
export { RELEASE_VERSION, RELEASE_WORKFLOW_FILE, RELEASE_INSTALL_ENV, PUBLIC_NPM_REGISTRY_URL, PUBLIC_PYPI_REGISTRY_URL, PUBLICATION_WAIT_TIMEOUT_SECONDS, PUBLICATION_WAIT_INTERVAL_SECONDS } from "./src/release-context.ts";
|
|
89
89
|
export { RELEASE_PUBLISH_TARGETS, RELEASE_INSTALL_MODES, ReleaseStepSelectionSchema, releaseStepSelection, releaseTagAnnotation, parseReleaseTagAnnotation, releasePublishesLocally } from "./src/release-options.ts";
|
|
90
90
|
export type { ReleasePublishTarget, ReleaseInstallMode, ReleaseStepSelection, ReleaseSelectionOptions } from "./src/release-options.ts";
|
|
91
91
|
export { tryReleaseWorkflow, releaseTagPattern, releaseCondition, releaseBuildSteps, nodeReleaseSetupSteps, uvSetupStep, refreshReleaseDocsDependencies, refreshPublicationVerification, DBXToolsRelease } from "./src/release.ts";
|
package/package.json
CHANGED
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@clack/prompts": "^1.7.0",
|
|
33
|
-
"@dbx-tools/auth": "^0.9.
|
|
34
|
-
"@dbx-tools/cli-args": "^0.9.
|
|
35
|
-
"@dbx-tools/core": "^0.9.
|
|
36
|
-
"@dbx-tools/path": "^0.9.
|
|
37
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
33
|
+
"@dbx-tools/auth": "^0.9.163",
|
|
34
|
+
"@dbx-tools/cli-args": "^0.9.163",
|
|
35
|
+
"@dbx-tools/core": "^0.9.163",
|
|
36
|
+
"@dbx-tools/path": "^0.9.163",
|
|
37
|
+
"@dbx-tools/shared-core": "^0.9.163",
|
|
38
38
|
"commander": "^15.0.0",
|
|
39
39
|
"concurrently": "^10.0.3",
|
|
40
40
|
"constructs": "^10.6.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"main": "index.ts",
|
|
58
58
|
"license": "Apache-2.0",
|
|
59
|
-
"version": "0.9.
|
|
59
|
+
"version": "0.9.163",
|
|
60
60
|
"types": "index.ts",
|
|
61
61
|
"type": "module",
|
|
62
62
|
"exports": {
|
package/src/release-context.ts
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
export const RELEASE_VERSION = "${{ needs.build-release.outputs.release_version }}";
|
|
4
4
|
/** Generated GitHub Actions workflow triggered by release tags. */
|
|
5
5
|
export const RELEASE_WORKFLOW_FILE = "release.yml";
|
|
6
|
+
/** Environment applied to release dependency installation and synthesis. */
|
|
7
|
+
export const RELEASE_INSTALL_ENV = {
|
|
8
|
+
ONNXRUNTIME_NODE_INSTALL: "skip",
|
|
9
|
+
} as const;
|
|
6
10
|
/** Public npm registry queried after npm publication completes. */
|
|
7
11
|
export const PUBLIC_NPM_REGISTRY_URL = "https://registry.npmjs.org";
|
|
8
12
|
/** Public PyPI JSON API queried after Python publication completes. */
|
package/src/release.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { projectReleaseBranch, taskCommand, type DBXToolsJavaScriptProject } fro
|
|
|
19
19
|
import {
|
|
20
20
|
PUBLIC_NPM_REGISTRY_URL,
|
|
21
21
|
PUBLICATION_WAIT_TIMEOUT_SECONDS,
|
|
22
|
+
RELEASE_INSTALL_ENV,
|
|
22
23
|
RELEASE_VERSION,
|
|
23
24
|
RELEASE_WORKFLOW_FILE,
|
|
24
25
|
} from "./release-context.ts";
|
|
@@ -254,6 +255,7 @@ function releaseBuildJob(
|
|
|
254
255
|
timeoutMinutes: 60,
|
|
255
256
|
env: {
|
|
256
257
|
CI: "true",
|
|
258
|
+
...RELEASE_INSTALL_ENV,
|
|
257
259
|
...(options.docs
|
|
258
260
|
? { DOCS_SITE_URL: options.docs.siteUrl, DOCS_BASE: options.docs.base ?? "/" }
|
|
259
261
|
: {}),
|
package/tasks/release.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { TaskDirectoriesOptionSchema, TaskRootOptionSchema } from "./options.ts"
|
|
|
13
13
|
import { writeReleaseNotes } from "./release-notes.ts";
|
|
14
14
|
import { assertReleaseVersion } from "./release-version.ts";
|
|
15
15
|
import { captureTaskCommand, runTaskCommand, taskCommandSucceeds } from "../src/_task-command.ts";
|
|
16
|
-
import { RELEASE_WORKFLOW_FILE } from "../src/release-context.ts";
|
|
16
|
+
import { RELEASE_INSTALL_ENV, RELEASE_WORKFLOW_FILE } from "../src/release-context.ts";
|
|
17
17
|
import {
|
|
18
18
|
RELEASE_INSTALL_MODES,
|
|
19
19
|
RELEASE_PUBLISH_TARGETS,
|
|
@@ -504,7 +504,11 @@ export async function runRelease(
|
|
|
504
504
|
throw new Error("--no-release-notes cannot be combined with supplied release notes");
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
-
if (install === "always")
|
|
507
|
+
if (install === "always") {
|
|
508
|
+
runTaskCommand(root, "bun", ["install"], {
|
|
509
|
+
env: { ...process.env, ...RELEASE_INSTALL_ENV },
|
|
510
|
+
});
|
|
511
|
+
}
|
|
508
512
|
if (selection.validation && hasPackageScript(root, "eslint:fix")) {
|
|
509
513
|
runTaskCommand(root, "bun", ["run", "eslint:fix"]);
|
|
510
514
|
}
|
|
@@ -514,7 +518,11 @@ export async function runRelease(
|
|
|
514
518
|
runTaskCommand(root, "git", ["fetch", remote, branch, "--tags"]);
|
|
515
519
|
if (options.bump ?? true) {
|
|
516
520
|
runTaskCommand(root, "bun", ["run", "bump"], {
|
|
517
|
-
env: {
|
|
521
|
+
env: {
|
|
522
|
+
...process.env,
|
|
523
|
+
...RELEASE_INSTALL_ENV,
|
|
524
|
+
DBX_TOOLS_RELEASE_INSTALL: install === "auto" ? "auto" : "never",
|
|
525
|
+
},
|
|
518
526
|
});
|
|
519
527
|
}
|
|
520
528
|
|