Github package CI#512
Conversation
|
Pulled and merged into opencircuitdesign.com. I updated the version so that it will force a test of the workflow overnight. |
|
Have you changed the settings in github? |
|
The settings are already set to "read and write permissions". Could it be something else? |
|
Great! It just didnt trigger last time. At least in my fork it was reproducable and I fixed it. I just asked to make sure it is set the right way |
…ow. Updated the version to force a test of the workflow.
|
Update: It did work: https://github.com/RTimothyEdwards/magic/pkgs/npm/magic-vlsi-wasm The package can now be pulled by npm with a .npmrc config file inside a project. Not yet published on npm, which will happen when the package can be considered for a broader audience. @dlmiles |
|
@RTimothyEdwards It produces https://github.com/RTimothyEdwards/magic/pkgs/npm/magic-vlsi-wasm which can be seen on the right hand side of the main GitHub page just below Releases. Does the NPM need a valid GITHUB_TOKEN to access the package ? If so this should be documented in the page example, as it saves support questions over this matter. I'm not sure on the semantic versioning using the git commit hash as the 4th part is ideal. It would have been better to keep that free (available to use later). What do other packages do in this area ? 1.2.3-20260101-0123cdef ? Allowing 1.2.3.4-20260101-0123cdef to exist i the future, if necessary. |
|
the github token is just for beta testers, as of now. Mostly since github is not in the standard sources for npm. Therefore it has to be manually added. I should probably add a note in the npm/README.md for early adopters. But I will review the choice of the versioning in the coming days. |
|
The specific issue is the use of the git-hash as the leading characters of a part of the version, as the hash is never lexically ordered or sortable in the way needed by semver, this is the secondary point of leading it with a date (which is lexically ordered and sortable). Some project might use 1.2.3-YYYMMDDgit0123cdef where the 'git' helps convey what the id after means. The important thing is this character is not a full-stop '.' which has meaning in semantic version. The point of the date is to prefix the git hash with something sortable that makes the entire string sortable, so the date part needs to have strong associativity with the git hash, not string associativity with the version patch level (3rd part). |
Hey,
Ive seen that the CI some how didnt trigger the package publish. Ive added a trigger that will trigger both on changes in the VERSION file and as tag push. @RTimothyEdwards you should change the settings under Settings -> Actions -> General -> Workflow permissions and set it to "Read and write permissions" in order for the package publishing to work as intended