ci: add tag-triggered release workflow for ts and rust crates#69
Merged
iduartgomez merged 1 commit intomainfrom Apr 23, 2026
Merged
ci: add tag-triggered release workflow for ts and rust crates#69iduartgomez merged 1 commit intomainfrom
iduartgomez merged 1 commit intomainfrom
Conversation
Adds .github/workflows/release.yml that publishes on tag push: - typescript-v* -> npm publish @freenetorg/freenet-stdlib - rust-v* -> cargo publish freenet-stdlib - rust-macros-v* -> cargo publish freenet-macros Each job verifies the tag version matches the manifest, runs tests and a dry-run publish before the real publish. Also supports workflow_dispatch with a dry_run toggle. Adds a release-rust Claude skill mirroring release-typescript so both flows have end-to-end docs. Updates the ts skill to mention the CI path as preferred. Required repo secrets (not set yet): - NPM_TOKEN (npm automation token with publish rights) - CARGO_REGISTRY_TOKEN (crates.io token)
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
.github/workflows/release.ymlthat publishes on tag push:typescript-v*→npm publish @freenetorg/freenet-stdlibrust-v*→cargo publish freenet-stdlibrust-macros-v*→cargo publish freenet-macrosworkflow_dispatchwith adry_runtoggle so we can exercise it without pushing a tag.release-rustClaude skill mirroringrelease-typescriptso both flows are documented end-to-end.release-typescriptskill to list the CI path as preferred.Required repo secrets
These do not exist yet and must be added before the workflow can publish:
NPM_TOKENCARGO_REGISTRY_TOKENWithout these, jobs will fail at the publish step.
Test plan
yaml.safe_loadparsesrelease.ymlcleanlyworkflow_dispatchwithdry_run=trueon each target to verify build/pack/dry-run steps pass