This repository was archived by the owner on May 26, 2025. It is now read-only.
feat: npm and pypi publish workflows#8
Open
MDzaja wants to merge 3 commits into
Open
Conversation
Signed-off-by: MDzaja <mirkodzaja0@gmail.com>
Tpuljak
suggested changes
Feb 7, 2025
| echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV | ||
|
|
||
| # Determine npm tag based on version suffix | ||
| if [[ "$PACKAGE_VERSION" =~ a[0-9]+$ ]]; then |
Contributor
There was a problem hiding this comment.
We follow this convention for pre-releases
v0.0.0-alpha.1
v0.0.0-beta.2
v0.0.0-rc.3
…it SHA in GH actions Signed-off-by: MDzaja <mirkodzaja0@gmail.com>
… desired convention Signed-off-by: MDzaja <mirkodzaja0@gmail.com>
Tpuljak
suggested changes
Feb 27, 2025
| dynamic = ["version"] | ||
| authors = [ | ||
| { name = "Vedran Jukic", email = "vedran.jukic@gmail.com" }, | ||
| { name = "dummy", email = "dummy@mail.com" }, # TODO: publish-pipeline; change to daytona-org |
Contributor
There was a problem hiding this comment.
Change to name = Daytona, email = support@daytona.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces two GitHub Actions for automated package publishing:
Both workflows can be triggered either by pushing a Git tag or manually via the GitHub interface. The version for publishing must adhere to one of the following formats:
vX.Y,vX.Y.Z,vX.Y.ZaN,vX.Y.ZbN,vX.Y.ZrcN. When triggered manually, the version input should follow the same format. Packages are published withoutvprefix.Additional Things to Discuss:
packages/python/pyproject.tomlcurrently uses placeholders and should probably be updated to reflect the Daytona organization ({ name = "dummy", email = "dummy@mail.com" }). Let me know what to write there.Key Updates:
package.jsonandpyproject.tomlare set to0.0.0and managed dynamically during the publishing process.latestfor stable releases (e.g.,v1.0.0)alpha,beta,release-candidatefor pre-releases (e.g.,v1.0.0a1,v1.0.0b1,v1.0.0rc1)Post-Merge Actions:
Permissions Setup:
Authentication Setup:
NPM_TOKENis securely stored in GitHub Secrets.