Set up npm trusted publishing as @ultracart/bigquery-sdk#1
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Prepares this package for npm trusted publishing (OIDC) as
@ultracart/bigquery-sdkand for the repo going public. Mirrors the existing@ultracart/bq-skillsetup.Changes
package.json@ultracart/bigquery-sdk; addedrepository/homepage/bugs,engines.node, afilesallowlist, andpublishConfig(access public + provenance).github/workflows/publish.ymlv*tags via OIDC trusted publishing, protectednpmenvironment, SHA-pinned actions, tag/version match check,npm testgate,npm publish --provenance --access publicREADME.mdPLAN.mdlink; updated install/require to the scoped name; status → early releasedocs/EXTRACTION.md,examples/README.md,src/client.jsCHANGELOG.md[0.1.0]test/schema-drift.test.jsVerification
npm test→ 20/20 passnpm pack --dry-run→ tarball contains onlysrc/+ README/LICENSE/CHANGELOG (no tests/scripts/examples)Remaining manual steps (after merge)
Trusted publishing requires the package to exist on npm before a trusted publisher can be configured, so:
0.0.1from local (npm publish --access public) so the first real0.1.0can go through CI with provenance.npm(with required reviewers).publish.yml+ environmentnpm).v0.1.0→ CI publishes with provenance.🤖 Generated with Claude Code