Commit 046213b
committed
Make NPM_TOKEN optional for package release
Classic tokens are no longer supported by npm. We may still want to run the
release script from a local machine using a fine-grained access token, but
these tokens expire after 90 days at most and are thus not suitable for our
release process.
I set up OpenID Connect between the `@webref/*` packages in npm and GitHub
Actions and dropped the former `NPM_TOKEN` secret. This update adjusts the
release script not to fail if such a token cannot be found. The call to
`npmPublish` gets adjusted accordingly only to pass the token if it exists.
That should close #1739.1 parent 67f6d77 commit 046213b
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
0 commit comments