ci(release): auto-publish on package.json version change#2
Merged
Conversation
Replaces the 'tag pushed → publish' trigger with 'push to main with version change → publish + tag'. Removes the manual git tag + push step from the release flow. Behaviour: - Push to main that bumps version in package.json → publish + tag - Push to main that doesn't touch version → workflow does nothing - workflow_dispatch with force=true → publish at current version - Tag already exists on origin → fail (safety against double publish) Safety properties preserved: - Only intentional version bumps publish (no accidental release from routine main pushes) - Lint + check-types + tests + build still gate the publish - Provenance still enabled Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
simaonogueira101
added a commit
that referenced
this pull request
May 11, 2026
Self-hosting noticed isn't realistic for ~100% of users — the value depends on a pre-ingested GHArchive + LinkedIn graph (hundreds of GiB of ClickHouse, paid RapidAPI access, OpenAI/Anthropic keys, NextAuth OAuth apps). The README pretending it's the common case was misleading and added friction for everyone. Changes: - src/api-client.ts: createClientFromEnv() now defaults NOTICED_API_URL to https://www.noticed.so when unset. NOTICED_API_KEY is still required. Self-hosters can override NOTICED_API_URL explicitly. - mcp.json + server.json: drop NOTICED_API_URL from required env; server.json marks it isRequired: false with a clarifying description. - README.md: purge `https://your-instance.noticed.so` from every client snippet (~10 occurrences); update the env-var table; new 'Self-hosting noticed' footnote that keeps the override documented without leading with it. - package.json + server.json: bump 0.3.0 → 0.3.1 (patch — the env-var fallback is a small behavioural addition, not a breaking change). Auto-release workflow (merged in PR #2) will pick up the version change on merge and publish 0.3.1 to npm automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 11, 2026
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
Removes the manual
git tag && git push --tagsstep from releasing. The workflow now:mainonly whenpackage.jsonis touched.versionactually changed vsHEAD~1. If unchanged → skip everything.v<version>already exists on the remote.v<version>git tag from the workflow itself, so git history still marks every release.workflow_dispatchwithforce=truelets you force-publish at the current version (useful for re-releasing after a failed publish without bumping).Why
Until now the release flow required an extra manual step after merging a version-bump PR:
That step is easy to forget and adds friction. The new flow makes the version bump in
package.jsonthe single source of release intent: bump it in your feature PR, merge, done.Safety properties preserved
package.jsonis a no-op for the workflow.Test plan
release.yml, notpackage.json).🤖 Generated with Claude Code