Version Packages (alpha)#33
Open
github-actions[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
aab6439 to
526a7b2
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
masteris currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmaster.Releases
@noormdev/cli@1.0.0-alpha.34
Minor Changes
7b907b3: Introduce the
noorm cicommand namespace and retire the standalonenoorm identity cidiagnostic.Four new commands cover the full CI lifecycle — mint a keypair, enroll it in a real database, bootstrap ephemeral state inside a job, and batch-load secrets:
noorm ci identity new --name <str> --email <str>— generate a test-CI keypair locally. No database contact, no state written. Prints the private key once plus a copy-pasteableNOORM_IDENTITY_*env block. Designed for stateless/ephemeral CI (isTestconfigs, throwaway databases). Accepts--json.noorm ci identity enroll --config <name> --name <str> --email <str> [--public-key <hex>]— register a CI identity in the target database and propagate vault access to it. Run once by a developer with existing vault access. Decrypts the caller's vault key, inserts a new identity row (machine='ci',os='env'), and re-encrypts the vault key for the new identity. Idempotent on identityHash — safe to re-run. When--public-keyis omitted, mints a new keypair and returns the private key; when provided, only the public half is enrolled (air-gapped flow).noorm ci init [--name <str>] [--force]— bootstrap ephemeralstate.encfromNOORM_IDENTITY_*+NOORM_CONNECTION_*env vars. Runs inside the CI job. Creates a config (default:ci, override via--nameorNOORM_CI_CONFIG_NAME), marks it active, setsisTest: true. Absorbs the formernoorm identity ciprecheck — fails fast with exit 1 if any required env var is missing or malformed, or ifstate.encalready exists without--force.noorm ci secrets --file <path> [--config <name>] [--overwrite]— batch-load secrets from a dotenv-style file into the active (or--config-named) vault. Parser ignores blank lines and#comments, splits on the first=, and strips a single matched pair of surrounding quotes. Existing keys are skipped unless--overwriteis set (so reruns are safe). Exit codes:0clean,1precondition failure,2partial (some set, some errored).Removed:
noorm identity ci. Its precheck behavior is now built intonoorm ci init. Callers that usedidentity cionly for validation should replace it withnoorm ci init, which does the validation plus the state bootstrap.Migration: replace any pipeline that set
NOORM_IDENTITY_*+NOORM_CONNECTION_*and rannoorm identity cifollowed bynoorm change ffwith:For vault-aware pipelines, provision the CI identity once from a developer machine:
@noormdev/sdk@1.0.0-alpha.34
@noormdev/example-todo-db@0.0.1-alpha.0
Patch Changes