Skip to content

Commit 0ee8a34

Browse files
committed
docs(release): document npm trust allowed action
1 parent 9b219cb commit 0ee8a34

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docs/ci-and-release.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,19 @@ package: @async/db
143143
owner/repo: async-framework/async-db
144144
workflow: release.yml
145145
environment: none
146+
allowed action: npm publish
147+
```
148+
149+
Use a current npm CLI when creating the trusted publisher. Older `npm trust`
150+
commands may fail with `E400` because npm now requires an explicit allowed
151+
action:
152+
153+
```bash
154+
npx --yes npm@latest trust github @async/db \
155+
--file release.yml \
156+
--repo async-framework/async-db \
157+
--allow-publish
158+
npx --yes npm@latest trust list @async/db
146159
```
147160

148161
Keep the package public through `publishConfig.access: "public"` and the workflow publish command:

0 commit comments

Comments
 (0)