Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 1.48 KB

File metadata and controls

72 lines (54 loc) · 1.48 KB

Publishing Guide for TopLocs Plugin SDK

Prerequisites

  1. Ensure you have npm access to publish under the @toplocs scope
  2. Login to npm: npm login
  3. Verify access: npm whoami

Publishing Steps

  1. Ensure clean working directory

    git status
  2. Update version in package.json

    npm version patch  # or minor/major
  3. Build the package

    npm run build
  4. Test the package locally

    npm pack
    # This creates toplocs-plugin-sdk-1.0.0.tgz
    # Test in another project: npm install path/to/toplocs-plugin-sdk-1.0.0.tgz
  5. Publish to npm

    npm publish
  6. Push tags to GitHub

    git push origin main --tags
  7. Create GitHub Release

First-time Setup

If this is the first publish:

# Ensure you're logged in
npm login

# Publish with public access
npm publish --access public

Version Guidelines

  • Patch (1.0.x): Bug fixes, documentation updates
  • Minor (1.x.0): New features, backwards compatible
  • Major (x.0.0): Breaking changes

Post-publish Checklist