Commit 95e350d
ci: publish to npm via Trusted Publishing (OIDC), drop NPM_TOKEN
release-please.yml published with a long-lived NODE_AUTH_TOKEN/NPM_TOKEN that
kept failing (claudius-chat-widget stuck at 1.6.0; create-claudius never
published). Switch the automatic release publish to npm Trusted Publishing
(OIDC): remove NODE_AUTH_TOKEN, upgrade to npm >= 11.5.1, bump publish Node to
22, and rely on the existing id-token: write permission. Each package needs a
trusted publisher (repo + release-please.yml) configured at npmjs.com.
Also correct publish-npm.yml's comment: OIDC cannot do a new package's first
publish (npm requires the package to exist before a trusted publisher can be
configured), and only one trusted publisher is allowed per package.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7db2819 commit 95e350d
2 files changed
Lines changed: 26 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | | - | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
97 | 106 | | |
98 | 107 | | |
99 | 108 | | |
100 | | - | |
101 | | - | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
110 | | - | |
111 | | - | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| |||
0 commit comments