Commit 8337d9f
[npm] Switch to npm publish with OIDC support
Switch from yarn to npm for package publishing to support OIDC authentication.
Yarn v1 does not support OIDC, while npm 11.5.1+ does.
Changes:
- Update publish.js to use npm publish instead of yarn publish
- Always use --provenance flag (works with both OIDC and token auth)
- npm automatically detects and uses OIDC when available in GitHub Actions
- Falls back to token-based auth when NPM_AUTH_TOKEN is set
- Update devcontainer to install npm 11.5.1 (minimum version for OIDC)
When running in GitHub Actions with id-token: write permission, npm will
automatically use OIDC without requiring NPM_AUTH_TOKEN.
Co-authored-by: Ona <no-reply@ona.com>1 parent ad15590 commit 8337d9f
File tree
3 files changed
+14
-9
lines changed- .devcontainer
- components/gitpod-protocol/scripts
3 files changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
337 | | - | |
| 338 | + | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
48 | 53 | | |
49 | | - | |
50 | | - | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
53 | 56 | | |
0 commit comments