Skip to content
Draft
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
22 changes: 19 additions & 3 deletions .azure-devops/graphitation-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pr: none
trigger:
- main
- alloy/relay-apollo-duct-tape

variables:
- group: InfoSec-SecurityResults
Expand Down Expand Up @@ -48,6 +47,9 @@ extends:
- checkout: self
persistCredentials: true # fix for beachball: https://github.com/microsoft/beachball/issues/674
fetchDepth: 2
- script: |
releaseBranch="origin/${BUILD_SOURCEBRANCH#refs/heads/}"
echo "Release branch: $releaseBranch"
- script: yarn
displayName: yarn
- script: |
Expand All @@ -58,7 +60,14 @@ extends:
git config user.name "Graphitation Service Account"
git fetch --depth=2
displayName: Configure git for release
- script: yarn release -y -n $(ossNpmToken) --access public --no-push --keep-change-files
- script: |
releaseBranch="origin/${BUILD_SOURCEBRANCH#refs/heads/}"

if [ "${BUILD_SOURCEBRANCH}" = "refs/heads/main" ]; then
yarn beachball publish -b "$releaseBranch" -y -n $(ossNpmToken) --access public --no-push --keep-change-files
else
yarn beachball publish -b "$releaseBranch" -t alpha --prerelease-prefix alpha -y -n $(ossNpmToken) --access public --no-push --keep-change-files
fi
displayName: Release to the npm registry
- script: |
git restore .
Expand All @@ -69,7 +78,14 @@ extends:
- task: npmAuthenticate@0
inputs:
workingFile: ".npmrc"
- script: yarn release -y --registry $(adoNpmFeedBaseUrl)
- script: |
releaseBranch="origin/${BUILD_SOURCEBRANCH#refs/heads/}"

if [ "${BUILD_SOURCEBRANCH}" = "refs/heads/main" ]; then
yarn beachball publish -b "$releaseBranch" -y --registry $(adoNpmFeedBaseUrl)
else
yarn beachball publish -b "$releaseBranch" -t alpha --prerelease-prefix alpha -y --registry $(adoNpmFeedBaseUrl)
fi
displayName: Release to the ado npm feed
- task: 1ES.PublishPipelineArtifact@1
displayName: 📒 Publish Manifest
Expand Down
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ yarn test
yarn lint
```

## Releasing alpha versions
## Releasing versions including prerelease versions

1. Add a branch which will be releasing alpha version to .azure-devops\graphitation-release.yml into `trigger`
2. Change `release` script in the root package json to `yarn beachball publish -t alpha`,
3. Modify package.json of the package you want to release to x.x.x-alpha.0
4. Every time you want to release a new version use `yarn change` and select `prelease`. To avoid patching of dependent packages set `dependentChangeType` to `none` manually in .changes directory
1. Open the `graphitation-release` pipeline in Azure DevOps and run it from the branch you want to release from.
1. If the branch is `main`, packages are published with the default npm dist-tag (`latest`).
1. If the branch is not `main`, packages are published with the `alpha` npm dist-tag automatically and the version is suffixed with `-alpha.x` (where x is the number of prerelease versions published for that package).
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"lint": "lage lint --continue",
"lage": "lage",
"ci": "yarn lage build types test lint && yarn checkchange",
"beachball": "beachball -b origin/main",
"change": "yarn beachball change",
"checkchange": "yarn beachball check",
"beachball": "beachball",
"change": "yarn beachball -b origin/main change",
"checkchange": "yarn beachball -b origin/main check",
"release": "yarn beachball publish -t latest",
"postinstall": "patch-package"
},
Expand Down Expand Up @@ -49,4 +49,4 @@
"serialize-javascript": "^7.0.4",
"webpack": "^5.105.4"
}
}
}
15 changes: 15 additions & 0 deletions packages/rempl-apollo-devtools/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@graphitation/rempl-apollo-devtools",
"entries": [
{
"date": "Fri, 13 Mar 2026 10:34:02 GMT",
"version": "2.1.7-alpha.0",
"tag": "@graphitation/rempl-apollo-devtools_v2.1.7-alpha.0",
"comments": {
"patch": [
{
"author": "pavelglac@gmail.com",
"package": "@graphitation/rempl-apollo-devtools",
"commit": "7d532053bd3a1a628c8ebf6490a12e9c60875148",
"comment": "test release"
}
]
}
},
{
"date": "Thu, 12 Mar 2026 13:08:20 GMT",
"version": "2.1.6",
Expand Down
10 changes: 9 additions & 1 deletion packages/rempl-apollo-devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Change Log - @graphitation/rempl-apollo-devtools

<!-- This log was last generated on Fri, 06 Mar 2026 20:27:06 GMT and should not be manually modified. -->
<!-- This log was last generated on Fri, 13 Mar 2026 10:34:02 GMT and should not be manually modified. -->

<!-- Start content -->

## 2.1.7-alpha.0

Fri, 13 Mar 2026 10:34:02 GMT

### Patches

- test release (pavelglac@gmail.com)

## 2.1.6

Fri, 06 Mar 2026 20:27:06 GMT
Expand Down
2 changes: 2 additions & 0 deletions packages/rempl-apollo-devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,5 @@ trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.


2 changes: 1 addition & 1 deletion packages/rempl-apollo-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@graphitation/rempl-apollo-devtools",
"license": "MIT",
"version": "2.1.6",
"version": "2.1.7-alpha.0",
"main": "./dist/apollo-devtools.js",
"repository": {
"type": "git",
Expand Down
Loading