Skip to content

Commit 9fd818b

Browse files
Copilotpavelglac
andauthored
Publish packages to the internal ADO feed before ESRP (#88)
* Publish packages to private ADO feed Co-authored-by: pavelglac <42679661+pavelglac@users.noreply.github.com> * Add canary package version Co-authored-by: pavelglac <42679661+pavelglac@users.noreply.github.com> * Use release artifact input for ADO publishing Co-authored-by: pavelglac <42679661+pavelglac@users.noreply.github.com> * Mark private ADO release as production Co-authored-by: pavelglac <42679661+pavelglac@users.noreply.github.com> * bump version --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pavelglac <42679661+pavelglac@users.noreply.github.com> Co-authored-by: Pavel Glac <pavelglac@gmail.com>
1 parent f296a80 commit 9fd818b

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

‎.azure-devops/release.yaml‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ variables:
99
value: 21f0b890-e3a8-4c0b-b9e7-2f764f8b799c
1010
- name: adoMirrorNpmFeedBaseUrl
1111
value: https://pkgs.dev.azure.com/DomoreexpGithub/Github_Pipelines/_packaging/github-npm-mirror/npm/registry/
12+
- name: adoNpmFeedBaseUrl
13+
value: https://pkgs.dev.azure.com/DomoreexpGithub/_packaging/GraphQL/npm/registry/
1214

1315
resources:
1416
repositories:
@@ -90,9 +92,42 @@ extends:
9092
npm pack --pack-destination $(System.DefaultWorkingDirectory)/packages
9193
displayName: "Generate npm package (.tgz)"
9294
95+
- job: PrivateAdoRelease
96+
displayName: Release to ADO npm feed
97+
dependsOn: Build
98+
pool:
99+
name: Azure-Pipelines-1ESPT-ExDShared
100+
image: ubuntu-latest
101+
os: linux
102+
templateContext:
103+
type: releaseJob
104+
isProduction: true
105+
inputs:
106+
- input: pipelineArtifact
107+
artifactName: npm-package-$(Build.BuildId)-$(Build.BuildNumber)
108+
targetPath: $(Pipeline.Workspace)/packages
109+
steps:
110+
- script: |
111+
cat <<'EOF' > "$(Agent.TempDirectory)/npm-private-feed.npmrc"
112+
always-auth=true
113+
registry=$(adoNpmFeedBaseUrl)
114+
EOF
115+
displayName: Create temporary .npmrc for private ADO feed
116+
117+
- task: npmAuthenticate@0
118+
displayName: Authenticate to private ADO feed
119+
inputs:
120+
workingFile: "$(Agent.TempDirectory)/npm-private-feed.npmrc"
121+
122+
- script: |
123+
npm publish "$(Pipeline.Workspace)/packages"/*.tgz --registry "$(adoNpmFeedBaseUrl)"
124+
displayName: Publish to private ADO feed
125+
env:
126+
NPM_CONFIG_USERCONFIG: $(Agent.TempDirectory)/npm-private-feed.npmrc
127+
93128
- job: Release
94129
displayName: ObjectStoreProvider Release
95-
dependsOn: Build
130+
dependsOn: PrivateAdoRelease
96131
pool:
97132
name: Azure-Pipelines-1ESPT-ExDShared
98133
image: ubuntu-latest

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/objectstoreprovider",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "A cross-browser object store library",
55
"author": "DataStack Team eleretzk@microsoft.com",
66
"scripts": {

0 commit comments

Comments
 (0)