Commit 6129b24
committed
ci: Adapt publish.yaml to use npm's trusted publishing
- Add comment to clarify id-token: write permission
- Remove obsolete usage of NPM auth token
- Add npm scope and move up pnpm setup in publish workflow
- Authentication via OIDC for NPM's trusted publishing may need to explicitly define
scope if it doesn't match the repository owner.
This is the case here because the repository owner is eclipsesource.
- Move pnpm setup before node setup to avoid pnpm overriding .npmrc changes
done by node setup for trusted publishing
- Add always-auth option to node setup to force auth after pnpm setup1 parent ab725ff commit 6129b24
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
91 | 92 | | |
0 commit comments