Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 868 Bytes

File metadata and controls

43 lines (30 loc) · 868 Bytes

Maintainer Notes

This file is for repo maintainers only. It is not included in the npm package.

Add NPM_TOKEN In GitHub

  1. Create an npm Automation token: npmjs.com -> Account Settings -> Access Tokens -> Generate New Token -> Automation
  2. Open repo: github.com/tanishqsh/domain-cli
  3. Go to: Settings -> Secrets and variables -> Actions
  4. Add new repository secret: Name = NPM_TOKEN Secret = <your npm automation token>

Workflow path: /.github/workflows/npm-publish.yml

GitHub -> npm Publish Flow

Publish triggers:

  • GitHub Release published
  • Manual workflow_dispatch

Important:

  • Bump package.json version before release
  • npm rejects already-published versions

Local Publish

npm login
npm publish --access public

If local provenance is unsupported:

npm publish --access public --provenance=false