Skip to content

Automate publishing of Python and NPM packages #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergei-maertens
Copy link
Contributor

@sergei-maertens sergei-maertens commented Jul 6, 2025

Closes #120

  • Publish to NPM automatically
  • Use trusted publishing for PyPI packages

Checklist:

  • Create granular access token on NPM (expires Nov. 30th 2027) with access only to the django-cookie-consent-package
  • Enable trusted publishing in PyPI

@sergei-maertens sergei-maertens force-pushed the chore/automate-npm-package-publishing branch from 625db06 to 058556c Compare July 6, 2025 12:10
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jezdez FYI, the JAZZBAND_RELEASE_KEY has been removed from the github actions secrets

@@ -83,3 +83,55 @@ jobs:
uses: codecov/codecov-action@v3
with:
directory: reports/


publish:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deliberately moved this into the ci.yml workflow since I only want to trigger package publishing when it's confirmed that the tests/build (still) succeed.

@sergei-maertens sergei-maertens force-pushed the chore/automate-npm-package-publishing branch from 058556c to 1b88bd8 Compare July 6, 2025 12:20
* Publish to NPM automatically
* Use trusted publishing for PyPI packages
@sergei-maertens sergei-maertens force-pushed the chore/automate-npm-package-publishing branch from 1b88bd8 to 28221ff Compare July 6, 2025 17:31
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.

Need to make npm package public
1 participant