Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

ci(release): publish tagged releases from CI with provenance [I15]

Corey Olsonb5144837cc70
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..6dff656f
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,31 @@
+# A release is a tag on a green commit (I15). Pushing a tag vX.Y.Z runs the gate on that exact commit,
+# checks the tag matches package.json's version, and publishes to npm with provenance through npm's
+# trusted publishing: no token is stored anywhere. npmjs.com must list this workflow (release.yml in
+# pullboard-dev/pullboard) as the package's trusted publisher, set once by the person.
+name: release
+
+on:
+ push:
+ tags: ['v*']
+
+permissions:
+ contents: read
+ id-token: write
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '24'
+ registry-url: 'https://registry.npmjs.org'
+ - name: The tag names package.json's version
+ run: test "v$(node -p "require('./package.json').version")" = "$GITHUB_REF_NAME"
+ - run: npm run gate
+ - name: npm new enough for trusted publishing
+ run: npm install -g npm@latest
+ - run: npm publish --provenance --access public
diff --git a/SPEC.md b/SPEC.md
index ddadb7c7..8a6f5a10 100644
--- a/SPEC.md
+++ b/SPEC.md
@@ -140,6 +140,7 @@ Statuses: approved = decided · draft = proposed · pending = open question · f
- I12 [draft, must] The README states what runs where today, which systems are tested, and what comes next. | gate: review
- I13 [draft, aim] A recording of `pullboard tour` plays on the README and the site, regenerated by a script. | gate: docs/shots/shots.test.js
- I14 [draft, aim] A 90-second product video, rendered by a script from the demo board, plays on the README and the site. | gate: docs/shots/shots.test.js | serves: I13
+- I15 [draft, must] A release is a tag on a green commit; CI publishes it to npm with provenance, never by hand. | gate: review
## N · Next commands
- N1 [draft, must] `pullboard decide`: the person's queue of everything waiting on them.