copy-twine-secrets-to-github
v1.0.0
Published
Small CLI that reads `~/.pypirc` and copies `pypi` and `testpypi` passwords (tokens) into GitHub Actions repository secrets using the `gh` CLI.
Readme
copy-twine-secrets-to-github
Small CLI that reads ~/.pypirc and copies pypi and testpypi passwords (tokens) into GitHub Actions repository secrets using the gh CLI.
Usage
Install locally or globally:
npm install -g .
Run:
copy-twine-secrets-to-github
Dry-run to see what would be executed:
copy-twine-secrets-to-github --dry-run
Notes
- Requires the GitHub CLI (
gh) installed and authenticated. - Looks for tokens matching
pypi-...in thepasswordfield under[pypi]and[testpypi]sections. - On failure to read
~/.pypircthe command exits with a non-zero status.
