Repository navigation
chore(release): semantic-release for the single package (house preset) - #7
Merged
Merged
Conversation
- single-package semantic-release in packages/deepsec, extending @anolilab/semantic-release-preset/pnpm (house pattern from lunora) - new .github/workflows/semantic-release.yml: push to main + workflow_dispatch, full-history checkout, validate + bundle before release, NPM_TOKEN fallback with OIDC trusted publishing + provenance - remove release.yml (OIDC one-shot publish) and bump-version.yml (versions now come from conventional commits) - reset the version to the 2.3.10 baseline so the first semantic-release run computes and publishes 2.4.0; tag v2.3.10 marks the last release - ship CHANGELOG.md in the tarball files list
This branch had an error being deployed
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.
What
Replaces the custom OIDC publish workflow with semantic-release for the single package, following the visulima/lunora house pattern:
packages/deepsec/.releaserc.jsonextends@anolilab/semantic-release-preset/pnpm(commit-analyzer, release-notes-generator, changelog, clean-package-json,@anolilab/semantic-release-pnpm, git, github — conventionalcommits preset,mainrelease branch).github/workflows/semantic-release.ymlmodeled on lunora's: push tomain+workflow_dispatch, serialized concurrency, full-history checkout,pnpm validate+pnpm bundlebefore release,id-token: writefor OIDC trusted publishing with automatic provenance,NPM_TOKENas fallback.github/workflows/release.yml(one-shot OIDC publish) and.github/workflows/bump-version.yml(versions now come from conventional commits)v2.3.10once64674pushed to origin — so the first semantic-release run computes and publishes 2.4.0 from the feat commits since that tag (verified locally:--dry-runreports The next release version is 2.4.0)CHANGELOG.mdadded to the tarballfileslist (written by@semantic-release/changelogintopackages/deepsec/)semantic-release,@anolilab/semantic-release-preset,@anolilab/semantic-release-pnpm, plus@visulima/yaml(optional peer of@visulima/fsused by the pnpm plugin — nothing in this workspace provided it, and its absence crashed plugin load under pnpm's strict layout)ignoreDependenciesentries for the preset chain (knip's semantic-release plugin only tracesplugins, notextends) and@visulima/yamlFirst-release bootstrap (one-time, npm side)
The package doesn't exist on npm yet, so a Trusted Publisher can't be configured up front. Pick one when coming back to this:
NPM_TOKENrepo secret → first release publishes 2.4.0 via token → then configure the Trusted Publisher at npmjs.com (repoanolilab/deepsec, workflowsemantic-release.yml) and optionally delete the secret.pnpm bundle && pnpm --filter @anolilab/deepsec publish --access publiconce, then configure the Trusted Publisher — semantic-release finds 2.4.0 already on npm, skips the registry write, still creates tag/changelog/GitHub release.Validation
pnpm validategreen: build, biome, knip, bundle, typecheck:deepsec, 2492 testspnpm peers check: only pre-existing warnings (website/openai), none from the release tooling