fix: specify --repo when calling gh (#3806)

Often, `gh` infers `--repo` when it is run from a Git clone, but our
`publish-npm` step is designed to avoid the overhead of cloning the
repo, so add the `--repo` option explicitly to fix things.
This commit is contained in:
Michael Bolin
2025-09-17 11:05:22 -07:00
committed by GitHub
parent 5332f6e215
commit e5fdb5b0fd

View File

@@ -260,6 +260,7 @@ jobs:
tag="${{ needs.release.outputs.tag }}"
mkdir -p dist/npm
gh release download "$tag" \
--repo "${GITHUB_REPOSITORY}" \
--pattern "codex-npm-${version}.tgz" \
--dir dist/npm