Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/agents/release.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ Start by reading `package.json` to determine the current version. Then confirm w
- Tag format: `v<version>` (e.g. `v2026.4.0` — *example*)
- Release branch format: `release/<YYYY>.<EVEN_MINOR>` (e.g. `release/2026.4` — *example*)

## Testing the release pipeline with `release/0.0.0`

`release/0.0.0` is a reserved test branch for exercising the stable pipeline
without releasing. Pushes to it trigger `build/azure-devdiv-pipeline.stable.yml`,
which stamps the version as `0.0.0` and forces `publishExtension` off. The build
and package stages run; the validation gate, signing, GitHub tag/release
creation, and Marketplace publishing are skipped.

- Use it only to test pipeline or build changes, never for a real release, and
never tag it.
- It is the only `release/*` branch that may be force-updated. Confirm with the
user first, because every push queues an Azure build:
```
git push upstream <COMMIT>:refs/heads/release/0.0.0 --force
```
- Never open PRs into `release/0.0.0` or merge it elsewhere. A green run proves
only that the build and packaging succeeded, not that anything was published.

## Release Workflow

Work through each phase in order. After presenting each phase's steps, **ask the user to confirm they have completed them before moving on**.
Expand Down
8 changes: 7 additions & 1 deletion build/azure-devdiv-pipeline.stable.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Publish Release
# release/0.0.0 is a reserved test branch: builds from it are stamped as
# version 0.0.0 and never wait for validation, sign, tag, or publish.
trigger:
branches:
include:
Expand Down Expand Up @@ -82,6 +84,10 @@ parameters:
- script: python -m nox --session install_bundled_libs
displayName: Install Python dependencies

- script: npm pkg set version=0.0.0
displayName: Use test version 0.0.0
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/release/0.0.0'))

- script: python ./build/update_ext_version.py --release --for-publishing
displayName: Update build number

Expand All @@ -98,7 +104,7 @@ extends:
buildSteps: ${{ parameters.buildSteps }}
standardizedVersioning: true
customNPMRegistry: $(AZURE_ARTIFACTS_FEED)
publishExtension: ${{ parameters.publishExtension }}
publishExtension: ${{ and(parameters.publishExtension, ne(variables['Build.SourceBranch'], 'refs/heads/release/0.0.0')) }}
teamName: $(TeamName)
ghCreateTag: true
ghCreateRelease: true
Expand Down
Loading