diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1738a69..1685ff1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/README.md b/README.md index 89fac46..829dffa 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/package-lock.json b/package-lock.json index a02f6d0..7f31148 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "setup-winappcli", - "version": "0.2.1", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "setup-winappcli", - "version": "0.2.1", + "version": "0.3.0", "license": "MIT", "dependencies": { "@actions/core": "^3.0.1", diff --git a/package.json b/package.json index 17f0f3a..d95a2c0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/setup-winappcli-task/task.json b/setup-winappcli-task/task.json index 43e2559..e850242 100644 --- a/setup-winappcli-task/task.json +++ b/setup-winappcli-task/task.json @@ -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", diff --git a/vss-extension.json b/vss-extension.json index 0b67496..a2a8a4e 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -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": [