Skip to content

Conversation

@bkeryan
Copy link

@bkeryan bkeryan commented Jul 9, 2025

Restructure Publish-Package.yml to use multiple jobs with the minimum permissions needed:

  • Run checks by calling PR.yml (default read-only permissions)
  • Build distribution package and upload as an artifact (default read-only permissions)
  • Upload distribution packages to PyPI (full write permissions)
  • Update package version for next time (needs contents:write and pull-request:write, also a PAT enables running checks on the newly created PR)

Tested by publishing https://github.com/bkeryan/python-styleguide/releases/tag/v0.5.0 to TestPyPI:

@github-actions
Copy link

github-actions bot commented Jul 9, 2025

Thank you for contributing! 👋

@mshafer-NI mshafer-NI merged commit 162f107 into mshafer-NI:dev/update_release_process_to_ni_python_actions Jul 9, 2025
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