Skip to content

Conversation

@kasperjunge
Copy link
Owner

Summary

  • Switch from trusted publishing to API token authentication for PyPI
  • Remove environment and id-token permissions that require trusted publisher setup
  • Use uv publish --token instead of pypa/gh-action-pypi-publish action
  • Bump version to 0.1.4 for testing

Problem

The previous workflow used trusted publishing which requires complex setup on PyPI. This caused authentication failures with error: invalid-publisher: valid token, but no corresponding publisher.

Solution

Switch to the simpler API token approach (same as the copcon project) which only requires setting the PYPI_API_TOKEN secret in GitHub.

Test plan

  • Ensure PYPI_API_TOKEN secret is set in GitHub repository settings
  • Merge this PR to trigger the publish workflow
  • Verify successful publication to PyPI

🤖 Generated with Claude Code

Replace trusted publishing with API token authentication for simpler setup.
Also bump version to 0.1.4 for testing the workflow.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kasperjunge kasperjunge merged commit a6856e0 into main Nov 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants