fix: make GitHub Action publish to npm using trusted publishing (#3431)

This commit is contained in:
Michael Bolin
2025-09-16 20:33:59 -07:00
committed by GitHub
parent 72733e34c4
commit 791d7b125f
4 changed files with 26 additions and 127 deletions

View File

@@ -30,14 +30,7 @@ When the workflow finishes, the GitHub Release is "done," but you still have to
## Publishing to npm
After the GitHub Release is done, you can publish to npm. Note the GitHub Release includes the appropriate artifact for npm (which is the output of `npm pack`), which should be named `codex-npm-VERSION.tgz`. To publish to npm, run:
```
VERSION=0.21.0
./scripts/publish_to_npm.py "$VERSION"
```
Note that you must have permissions to publish to https://www.npmjs.com/package/@openai/codex for this to succeed.
The GitHub Action is responsible for publishing to npm.
## Publishing to Homebrew