mirror of
https://github.com/bitbaum/threadkit.git
synced 2026-12-05 05:48:17 +01:00
chore(release): 0.1.1 — reconcile releases, publish via trusted publishing (#9)
Ports ai-forms' publish reconciler: merging a version bump to main is the whole release. The workflow (on push, hourly, or by hand) asks the registry whether package.json's version exists and publishes it if not — idempotent, and immune to the tag-pushed-by-GITHUB_TOKEN trigger gap. Auth is OIDC via the package's Trusted Publisher (this repo + publish.yml), so no npm token exists to leak or expire. The bump to 0.1.1 makes the merge itself prove the tokenless path live. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b24a59011
commit
047dc691e2
3 files changed
+13
-19
No files matched your search
@@ -12,17 +12,14 @@ on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ['v*']
|
||||
# The reconciler, and the reason this is reliable. A merge made with
|
||||
# GITHUB_TOKEN (auto-merge, or any bot) starts no workflow, so the push
|
||||
# trigger above silently does not fire for exactly the merges that matter.
|
||||
# This repo has no auto-merge today, which is precisely why the schedule
|
||||
# belongs here now rather than after it is added and a release goes missing.
|
||||
#
|
||||
# The schedule asks the registry the same idempotent question on a timer:
|
||||
# is package.json's version published? A release missed by any means goes
|
||||
# out within the hour without anyone noticing it was missed.
|
||||
# The reconciler, and the reason this is reliable. A merge made by auto-merge
|
||||
# uses GITHUB_TOKEN, and a push with that token starts no workflow — so the
|
||||
# push trigger above silently does not fire for exactly the merges that matter.
|
||||
# The schedule asks the registry the same idempotent question on a timer: is
|
||||
# package.json's version published? If a release was missed by any means, it
|
||||
# goes out within the hour without anyone noticing it was missed.
|
||||
schedule:
|
||||
- cron: '17 * * * *'
|
||||
- cron: '43 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -64,14 +61,11 @@ jobs:
|
||||
- if: steps.check.outputs.publish == 'true'
|
||||
run: npm run verify
|
||||
|
||||
# Bootstrap auth. Trusted publishing (OIDC) needs no token and is the
|
||||
# destination; until it is configured on the package, NPM_TOKEN is what
|
||||
# authenticates. The token expires — token-health.yml warns before it does,
|
||||
# rather than letting a release be the thing that discovers it.
|
||||
# Auth is trusted publishing (OIDC): npm accepts this job's identity token
|
||||
# because the package's Trusted Publisher is pinned to exactly this repo
|
||||
# and workflow. No npm token exists anywhere, so none can leak or expire.
|
||||
- if: steps.check.outputs.publish == 'true'
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Tag the released commit
|
||||
if: steps.check.outputs.publish == 'true'
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "threadkit",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "threadkit",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.5",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "threadkit",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Headless multi-participant message threads. Permission is participation, unread is per-person, and an AI can be a participant subject to the same visibility rules as everyone else.",
|
||||
"license": "MIT",
|
||||
"author": "Mao Nakamoto",
|
||||
|
||||
Reference in new issue
Block a user