You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ir.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ pub enum Step {
86
86
Use the typed structs whenever the compiler owns the step:
87
87
88
88
-`Step::Bash` for inline bash (`BashStep::script` is the raw body, not a YAML block).
89
-
-`Step::Task` for ADO task invocations such as `NodeTool@0`, `UsePythonVersion@0`, or `UseDotNet@2`. For compiler-generated built-in tasks, prefer `src/compile/ir/tasks.rs` factory helpers over ad-hoc `TaskStep::new(...)` calls.
89
+
-`Step::Task` for ADO task invocations such as `UseNode@1`, `UsePythonVersion@0`, or `UseDotNet@2`. For compiler-generated built-in tasks, prefer `src/compile/ir/tasks.rs` factory helpers over ad-hoc `TaskStep::new(...)` calls.
90
90
-`Step::Checkout` for `checkout:` steps.
91
91
-`Step::Download` for pipeline-artifact downloads.
92
92
-`Step::Publish` for pipeline-artifact publishes. Under 1ES, lowering moves publish steps into `templateContext.outputs` so artifacts are published by the 1ES template machinery exactly once.
Copy file name to clipboardExpand all lines: docs/runtimes.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ When enabled, the compiler:
71
71
72
72
### Node.js (`node:`)
73
73
74
-
Node.js runtime. Auto-installs Node.js via `NodeTool@0`, emits `npmAuthenticate@0` for internal feed access, adds Node ecosystem domains to the AWF network allowlist, extends the bash command allow-list, and optionally injects feed URL env vars for npm.
74
+
Node.js runtime. Auto-installs Node.js via `UseNode@1`, emits `npmAuthenticate@0` for internal feed access, adds Node ecosystem domains to the AWF network allowlist, extends the bash command allow-list, and optionally injects feed URL env vars for npm.
75
75
76
76
```yaml
77
77
# Simple enablement (installs default Node LTS)
@@ -89,18 +89,18 @@ runtimes:
89
89
90
90
| Field | Type | Description |
91
91
|-------|------|-------------|
92
-
| `version` | string | Node.js version to install (e.g., `"22.x"`, `"20.x"`). Passed to `NodeTool@0` `versionSpec`. Defaults to `"22.x"`. |
92
+
| `version` | string | Node.js version to install (e.g., `"22.x"`, `"20.x"`). Passed to `UseNode@1` `version`. Defaults to `"22.x"`. |
93
93
| `feed-url` | string | Internal npm registry URL. Injects `NPM_CONFIG_REGISTRY` env var into the agent environment. |
94
94
| `config` | string | Path to an .npmrc config file. Accepted with a warning — the file will not be available inside the AWF agent environment until proxy-auth support lands. |
95
95
96
96
When enabled, the compiler:
97
-
- Contributes a `NodeTool@0` task to `Declarations::agent_prepare_steps` (runs before AWF)
97
+
- Contributes a `UseNode@1` task to `Declarations::agent_prepare_steps` (runs before AWF)
98
98
- If `feed-url` or `config` is set, also injects `npmAuthenticate@0` (and an ensure-`.npmrc` step) to authenticate the ADO build service identity for internal feeds
99
99
- Auto-adds `node`, `npm`, `npx` to the bash command allow-list
100
100
- Adds Node ecosystem domains to the network allowlist (npmjs.org, nodejs.org, etc.)
101
101
- If `feed-url` is set, injects `NPM_CONFIG_REGISTRY` env var into the agent environment
102
102
- Appends a prompt supplement informing the agent about Node.js availability
103
-
- No AWF mounts or PATH prepends needed — `NodeTool@0` installs to `/opt/hostedtoolcache` (auto-mounted by AWF) and publishes PATH entries that AWF merges via `$GITHUB_PATH`
103
+
- No AWF mounts or PATH prepends needed — `UseNode@1` installs to `/opt/hostedtoolcache` (auto-mounted by AWF) and publishes PATH entries that AWF merges via `$GITHUB_PATH`
104
104
- Note: AWF overlays `~/.npmrc` with `/dev/null` for credential security — the `NPM_CONFIG_REGISTRY` env var approach avoids conflicting with this overlay
0 commit comments