Skip to content

Set up npm trusted publishing as @ultracart/bigquery-sdk#1

Merged
ucjonathan merged 1 commit into
mainfrom
setup-trusted-publishing
Jun 30, 2026
Merged

Set up npm trusted publishing as @ultracart/bigquery-sdk#1
ucjonathan merged 1 commit into
mainfrom
setup-trusted-publishing

Conversation

@ucjonathan

Copy link
Copy Markdown
Contributor

What

Prepares this package for npm trusted publishing (OIDC) as @ultracart/bigquery-sdk and for the repo going public. Mirrors the existing @ultracart/bq-skill setup.

Changes

File Change
package.json name → @ultracart/bigquery-sdk; added repository/homepage/bugs, engines.node, a files allowlist, and publishConfig (access public + provenance)
.github/workflows/publish.yml new — publishes on v* tags via OIDC trusted publishing, protected npm environment, SHA-pinned actions, tag/version match check, npm test gate, npm publish --provenance --access public
README.md fixed broken PLAN.md link; updated install/require to the scoped name; status → early release
docs/EXTRACTION.md, examples/README.md, src/client.js install/require snippets → scoped name
CHANGELOG.md cut [0.1.0]
test/schema-drift.test.js split fake paths on both separators so offline tests pass on Windows too (Linux CI was already green)

Verification

  • npm test20/20 pass
  • npm pack --dry-run → tarball contains only src/ + README/LICENSE/CHANGELOG (no tests/scripts/examples)
  • Secret/PII scan of tree + git history → clean

Remaining manual steps (after merge)

Trusted publishing requires the package to exist on npm before a trusted publisher can be configured, so:

  1. Bootstrap publish a placeholder 0.0.1 from local (npm publish --access public) so the first real 0.1.0 can go through CI with provenance.
  2. Create a protected GitHub Environment named npm (with required reviewers).
  3. Add the trusted publisher on the npm package's access page (this repo + publish.yml + environment npm).
  4. Tag v0.1.0 → CI publishes with provenance.
  5. Make the repo public.

🤖 Generated with Claude Code

Prepare the package for OIDC trusted publishing to npm and for the repo
going public.

- package.json: rename to @ultracart/bigquery-sdk; add repository,
  homepage, bugs, engines.node; add a `files` allowlist (ships src/ +
  README/LICENSE/CHANGELOG only); add publishConfig (access public,
  provenance).
- Add .github/workflows/publish.yml: OIDC trusted publishing on v* tags
  via a protected `npm` environment, SHA-pinned actions, tag/version
  match check, npm test gate, npm publish --provenance --access public.
  Mirrors the existing @ultracart/bq-skill setup.
- Update install/require snippets to the scoped name across README,
  docs/EXTRACTION.md, examples/README.md, and src/client.js.
- README: fix the broken PLAN.md link; mark status as early release.
- CHANGELOG: cut [0.1.0].
- test/schema-drift.test.js: split fake paths on both separators so the
  offline tests pass on Windows too (CI on Linux was already green).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ucjonathan ucjonathan merged commit 3e0bd93 into main Jun 30, 2026
@ucjonathan ucjonathan deleted the setup-trusted-publishing branch June 30, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant