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
32 changes: 32 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,38 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

## Releasing

This repository ships a GitHub Action and an Azure DevOps Marketplace extension.
They share source code, but publishing one does not publish the other.

1. Update `package.json`, both root package versions in `package-lock.json`,
`setup-winappcli-task/task.json` (`Major`, `Minor`, and `Patch`), and
`vss-extension.json` to the same new version. Update the README's GitHub Action
example when introducing a new minor release line.
2. Restore dependencies from the lockfile, build, lint, test, and package the
extension using the repository's npm scripts. Packaging requires `tfx-cli`.
Commit any changed distributables with the version bump, and merge the pull
request only after the build, test, and distributable consistency checks pass.
3. For the GitHub Action, create an immutable full-version tag (for example,
`v0.3.0`) on the verified merged commit and publish a GitHub release with notes
describing the changes and any compatibility considerations. Create or update
the corresponding minor tag (for example, `v0.3`) to the same commit. Existing
tags for other minor release lines should remain unchanged.
4. For the Azure DevOps extension, manually run
[WinAppCLI(Setup) - CI](https://microsoft.visualstudio.com/pde-oss/_build?definitionId=184249),
defined in `.pipelines/build.yml`, against that same commit with
`DoEsrp=true`. The default
is `false`, which does not sign the VSIX or include the publish stage. After
the build, tests, and ESRP signing succeed, start the manual
`PublishToMarketplace` stage to publish the signed `vsix` artifact. Do not
substitute the unsigned VSIX from GitHub Actions.
5. Verify the GitHub release and tags resolve to the intended commit, and verify
the new extension version is available in the
[Marketplace](https://marketplace.visualstudio.com/items?itemName=ms-wpd-winappcli.windows-app-development-cli-setup-task).
The Azure DevOps example continues to use `UseWinAppCLI@0` while the task's
major version is zero.

## Distributable consistency

The consistency workflow rebuilds both shipped bundles using the pull request's
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: microsoft/setup-WinAppCli@v0.1
- uses: microsoft/setup-WinAppCli@v0.3
- run: winapp restore
```

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-winappcli",
"version": "0.2.1",
"version": "0.3.0",
"private": true,
"description": "Setup Windows App Development CLI GitHub Action",
"main": "lib/src/main.js",
Expand Down
4 changes: 2 additions & 2 deletions setup-winappcli-task/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft",
"version": {
"Major": 0,
"Minor": 2,
"Patch": 1
"Minor": 3,
"Patch": 0
},
"instanceNameFormat": "Use Windows App Developer CLI $(version)",
"minimumAgentVersion": "4.248.0",
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "windows-app-development-cli-setup-task",
"name": "Windows App Development CLI Tasks",
"version": "0.2.1",
"version": "0.3.0",
"publisher": "ms-wpd-winappcli",
"public": true,
"targets": [
Expand Down
Loading