Skip to content

docs(readme): document NPM_CONFIG_FILE recommendations + token bootstrap setup#22

Merged
ob-aion merged 1 commit into
mainfrom
docs/npm-config-recommendations
May 20, 2026
Merged

docs(readme): document NPM_CONFIG_FILE recommendations + token bootstrap setup#22
ob-aion merged 1 commit into
mainfrom
docs/npm-config-recommendations

Conversation

@ob-aion
Copy link
Copy Markdown
Contributor

@ob-aion ob-aion commented May 20, 2026

Summary

Document the recommended hardened NPM_CONFIG_FILE .npmrc and the token bootstrap auth setup as Security subsections in the README. Reflects the v0.1.11 token-path hardening.

  • NewRecommended NPM_CONFIG_FILE contents subsection: the canonical 7-line .npmrc with per-line rationale (save-exact, fund=false, audit=false, ignore-scripts=true, package-lock=false, prefer-online=true).
  • UpdatedPublish — OIDC vs token bootstrap subsection: explains the auto-detect logic, the OIDC default, the token bootstrap setup (NPM_PACKAGE_REGISTRY_TOKEN + NPM_EXTRA_CONFIG secrets needed for first publish), why npm publish is used on that path, and the post-first-publish migration to OIDC + provenance.
  • Clarified — Environment intro: every npm-publish-related value is a secret (encrypted), not a GitHub var.
  • Updated — wire-up example: NPM_EXTRA_CONFIG is now forwarded so the bootstrap setup works out of the box, with an inline comment noting both secrets are dropped after npm Trusted Publisher is configured.

Stacking

Based on fix/npm-publish-ignore-scripts (#20). GitHub will auto-retarget to main once #20 merges.

Test plan

  • Render README on GitHub — both new subsections fold/unfold cleanly inside the existing ## Security block.
  • CHANGELOG and package.json version bump (0.1.11 → 0.1.12) consistent with the rest of the release flow.
  • actionlint + yamllint exit 0.

…rap setup

Surface the recommended hardened `.npmrc` contents (per-line rationale)
and the token bootstrap auth setup as Security subsections:
NPM_PACKAGE_REGISTRY_TOKEN + NPM_EXTRA_CONFIG secrets needed to
publish the first version of a new scoped package, why npm publish
is used on that path, migration token to OIDC after first publish.

Clarify in the Environment intro that every npm-publish-related
value is a secret (encrypted), not a GitHub var.

Extend the wire-up example with the NPM_EXTRA_CONFIG forward so the
bootstrap setup works out of the box.

Bumps 0.1.11 to 0.1.12 and prepends the changelog entry.
@ob-aion ob-aion merged commit 04df339 into main May 20, 2026
6 checks passed
@ob-aion ob-aion deleted the docs/npm-config-recommendations branch May 20, 2026 07:31
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