xonecas.io
719
Le

lextide / commit bf10fed

chore: remove publish workflow automation

xonecas2026-04-11 bf10fed7e47a9744966c4e2d3a145cdb20166196 parent 9696b94

3 files changed

.github/workflows/publish.yml+0−50
@@ -1,50 +0,0 @@
1-name: publish
2-
3-on:
4- push:
5- tags:
6- - "v*.*.*"
7- workflow_dispatch:
8-
9-jobs:
10- publish:
11- runs-on: ubuntu-latest
12- permissions:
13- contents: read
14- steps:
15- - name: Checkout
16- uses: actions/checkout@v4
17- with:
18- fetch-depth: 0
19-
20- - name: Setup Bun
21- uses: oven-sh/setup-bun@v2
22- with:
23- bun-version: 1.3.9
24-
25- - name: Install deps
26- run: bun install --frozen-lockfile
27-
28- - name: Verify tag matches package version
29- if: github.event_name == 'push'
30- run: |
31- VERSION="$(bun --print 'JSON.parse(await Bun.file("package.json").text()).version')"
32- test "v${VERSION}" = "${GITHUB_REF_NAME}"
33-
34- - name: Run checks
35- run: bun run check
36-
37- - name: Build package
38- run: bun run build
39-
40- - name: Configure npm auth
41- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
42- env:
43- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44-
45- - name: Dry-run publish
46- run: bun publish --dry-run --access public
47-
48- - name: Publish to npm
49- if: github.event_name == 'push'
50- run: bun publish --access public
AGENTS.md+7−4
@@ -140,12 +140,15 @@ When requirements are clear, act on them.
140140
141141 - package version must use semver `X.Y.Z`
142142 - before release, make sure `spec.md`, `README.md`, `AGENTS.md`, and `TODO.md` agree on current public API and scope
143+- release flow is local command flow, not CI workflow setup unless user explicitly asks for automation
144+- sync local `main` with `origin/main`
145+- run `bun run check`
143146 - build release artifacts with `bun run build`
144147 - inspect publish payload with `bun run pack:dry`
145-- publish with `bun publish --access public`
146-- GitHub Actions workflow lives at `.github/workflows/publish.yml`
147-- tag-triggered publish expects `NPM_TOKEN` secret and tag name `v<package.json version>`
148-- release flow should sync local `main` with `origin/main`, create annotated tag, push tag, then let workflow publish
148+- create annotated tag `v<package.json version>` with changelog message since last release
149+- push commit(s) and tag
150+- publish locally with `bun publish --access public`
151+- do not upload local npm tokens or wire publish secrets to GitHub unless user explicitly asks for that
149152
150153 ## Spec ambiguities
151154
README.md+18−0
@@ -361,3 +361,21 @@ bun run test
361361 bun run check
362362 bun run pack:dry
363363 ```
364+
365+## Release
366+
367+Local release flow:
368+
369+```sh
370+git fetch origin
371+git pull --ff-only origin main
372+bun run check
373+bun run build
374+bun run pack:dry
375+git tag -a v0.1.0 -m "v0.1.0"
376+git push origin main
377+git push origin v0.1.0
378+bun publish --access public
379+```
380+
381+Adjust tag/version to match `package.json`.