Commit 1db132b
authored
Publish to NPM instead of custom feed (#1478)
The PythonEnvironmentsAPI is intended to allow other people's codes to
communicate with this extensions to leverage its functionality. This
includes for example, several Python VSCode Extensions. Hence, it should
be easily available to all via the npmjs.com registry.
===========
This pull request updates the build and publishing pipeline for the npm
package, primarily to reflect the renaming of the package directory from
`pythonEnvironmentsApi` to `api` and to simplify the publishing process.
The changes also streamline the pipeline by removing legacy steps and
variables related to Azure Artifacts and the msft_consumption feed, and
by updating the publishing mechanism to use a new template.
Key updates include:
**Pipeline directory and variable updates:**
* All references to the package directory have been updated from
`pythonEnvironmentsApi` to `api` in the pipeline configuration and
variables, ensuring consistency with the new directory structure.
[[1]](diffhunk://#diff-2836c583ae31cc43d5ca54afe3e6130263d83b3661456664e443e25c951e6110L27-R41)
[[2]](diffhunk://#diff-2836c583ae31cc43d5ca54afe3e6130263d83b3661456664e443e25c951e6110L106-R113)
* The `homepage` field in `api/package.json` is updated to point to the
new `api` directory.
**Pipeline simplification and publishing changes:**
* The pipeline template now uses `MicroBuild.1ES.Official.Publish.yml`
instead of the previous template, and the build steps for installing
dependencies, compiling, and packaging have been inlined instead of
being parameterized.
[[1]](diffhunk://#diff-2836c583ae31cc43d5ca54afe3e6130263d83b3661456664e443e25c951e6110L27-R41)
[[2]](diffhunk://#diff-2836c583ae31cc43d5ca54afe3e6130263d83b3661456664e443e25c951e6110L106-R113)
* The stages and jobs related to publishing to Azure Artifacts and the
msft_consumption feed, including managed identity authentication and
custom `.npmrc` creation, have been removed. Instead, publishing now
uses a standardized MicroBuild template for npm package distribution.
These changes help modernize and simplify the build and release process
for the npm package.1 parent c31d45e commit 1db132b
10 files changed
Lines changed: 37 additions & 148 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 27 | | |
53 | 28 | | |
54 | 29 | | |
55 | 30 | | |
56 | 31 | | |
57 | 32 | | |
58 | | - | |
| 33 | + | |
59 | 34 | | |
60 | 35 | | |
61 | 36 | | |
62 | 37 | | |
63 | 38 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 39 | | |
77 | 40 | | |
78 | | - | |
| 41 | + | |
79 | 42 | | |
80 | 43 | | |
81 | 44 | | |
| |||
103 | 66 | | |
104 | 67 | | |
105 | 68 | | |
106 | | - | |
107 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
108 | 85 | | |
109 | 86 | | |
110 | 87 | | |
111 | 88 | | |
112 | | - | |
| 89 | + | |
113 | 90 | | |
114 | 91 | | |
115 | 92 | | |
116 | | - | |
117 | | - | |
| 93 | + | |
| 94 | + | |
118 | 95 | | |
119 | 96 | | |
120 | 97 | | |
121 | 98 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 99 | + | |
130 | 100 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
0 commit comments