Skip to content

📝 Documentation: Explain how to publish a new version #2370

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Documentation Report Checklist

Overview

As of the new npm trusted publishing requirements (#2270 & co.), I don't know the best / canonically correct way to make a new package with a new repository. Trusted publishing needs to be enabled, but how do you do that for a new package automatically?

Accepting docs PRs for someone to figure this out!

Additional Info

The approximate steps I took for https://github.com/JoshuaKGoldberg/remark-add-twoslash were:

  1. Run npx create-typescript-app --remote to create the package & upstream repo
  2. Ran pnpm build locally
  3. Ran pnpm publish locally to make a 0.0.*
  4. Went to https://www.npmjs.com/package/remark-add-twoslash/access and set the Trusted Publisher settings to JoshuaKGoldberg / remark-add-twoslash / publish.yaml

If there's a way for create-typescript-app to do this automatically, that'd be lovely. Please file issue(s) (or just comment here if you're in a hurry) letting us know!

🎁

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions