7 Commits

Author SHA1 Message Date
Fourier cbbb11b47f ci(release): add secret pre-flight, npm dry-run, and post-publish verify
- Pre-flight checks HOMEBREW_TAP_TOKEN and NPM_TOKEN are non-empty
  (catches empty-secret mistakes before anything runs)
- npm publish step now runs whoami + publish --dry-run before real publish
  (catches auth failures at the same step, not mid-release)
- Verify step polls npm view to confirm the version landed
  (fail fast if publish silently didn't work)

Prevents the v0.4.0 ghost release where GitHub had the tag but npm didn't.
2026-04-18 14:13:02 +08:00
Fourier fb1e0ebfed feat: merge npm package into main repo
Move npm distribution files from notion-cli-npm into npm/ directory.
Release workflow now auto-publishes to npm after goreleaser completes.

- npm/: package.json, install.js, bin/notion (shell wrapper), bin/notion.cmd
- release.yml: added Node.js setup + npm publish step
- Version synced from git tag automatically

Requires NPM_TOKEN secret to be configured in GitHub repo settings.
2026-04-07 14:11:29 +08:00
Fourier 0c3ca7a016 ci: split tokens — GITHUB_TOKEN for release, HOMEBREW_TAP_TOKEN for cross-repo 2026-02-24 17:26:31 +08:00
Fourier b5ddd58c9e ci: use HOMEBREW_TAP_TOKEN for cross-repo push 2026-02-24 17:08:55 +08:00
Fourier 4276333c71 ci: pin Go 1.24 for lint job (match go.mod) 2026-02-19 06:14:36 +08:00
Fourier 4f7c2f7cdf fix: CI test failures + goreleaser deprecations
- config_test: use t.Setenv for reliable env isolation on CI
- config_test: skip permission test on Windows
- test.yml: align Go matrix with go.mod (1.24)
- goreleaser: fix deprecated formats/homebrew_casks fields
- block: improve --format md rendering with proper indentation
- block: add more markdown parse test cases
- page: minor improvements
2026-02-19 06:11:59 +08:00
Fourier c435c10ac3 release: v0.2.0 — goreleaser, CI, Docker, full README, distribution
- Add goreleaser config (linux/darwin/windows × amd64/arm64)
- Add GitHub Actions: release (goreleaser on tag) + test (3 OS × 3 Go versions + lint)
- Add Dockerfile (Alpine-based)
- Add Homebrew tap (4ier/homebrew-tap) and Scoop bucket (4ier/scoop-bucket)
- Rewrite README: badges, 6 install methods, command table, feature showcase
- Wire version via ldflags
- Update SKILL.md with new commands and install methods
- Add DISTRIBUTION.md plan
2026-02-19 01:34:39 +08:00