Skip to content

ci: publish dotgithub packages to npmjs using NPM_AUTH_TOKEN#17

Merged
danbot315 merged 1 commit into
mainfrom
fix/npmjs-publish-config
Mar 2, 2026
Merged

ci: publish dotgithub packages to npmjs using NPM_AUTH_TOKEN#17
danbot315 merged 1 commit into
mainfrom
fix/npmjs-publish-config

Conversation

@danbot315
Copy link
Copy Markdown
Contributor

Align dotgithub publish settings with openapi-to-ts npmjs pattern.

Changes

  • package publish registries switched to npmjs:
    • packages/core/package.json
    • packages/cli/package.json
  • root script updated:
    • changeset:publish now uses https://registry.npmjs.org
  • workflows updated to npmjs + npm token:
    • .github/workflows/release.yml
    • .github/workflows/ci.yml snapshot publish job
  • auth model now matches openapi-to-ts:
    • GITHUB_TOKEN for Changesets GitHub metadata
    • NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} for npm publish

Result

  • Main release publishes to npmjs only when changesets exist.
  • PR snapshots (#snapshot) publish to npmjs tag pr-<number>.

@danbot315 danbot315 requested a review from azweb76 March 2, 2026 13:42
@danbot315 danbot315 merged commit 9c0be21 into main Mar 2, 2026
4 checks passed
@danbot315 danbot315 deleted the fix/npmjs-publish-config branch March 2, 2026 13:42
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