Skip to content

npm package setup required #5

Description

@timimsms

npm Package Setup Checklist

This issue tracks the manual steps required to enable npm distribution after PR #4 is merged.

Prerequisites

Package Setup

GitHub Configuration

  • Generate npm token:
    1. Go to https://www.npmjs.com/settings/[username]/tokens
    2. Create new token with "Automation" type
    3. Copy the token
  • Add NPM_TOKEN to GitHub secrets:
    1. Go to Settings → Secrets and variables → Actions
    2. Add new secret named NPM_TOKEN
    3. Paste the npm token value

Release Workflow Update

  • Add npm publish step to .github/workflows/release.yml:
    - name: Publish to npm
      if: success()
      env:
        NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
        GITHUB_REF_NAME: ${{ github.ref_name }}
      run: |
        ./scripts/publish-npm.sh

Verification

  • Create a test release to verify npm publishing works
  • Test installation: npm install -g @clickup/cli
  • Verify binary downloads and runs correctly

Important Notes

  • The package name @clickup/cli requires either:
    • Ownership of the @clickup npm organization
    • Or use an alternative like clickup-cli (without scope)
  • First version must be published manually to claim the name
  • npm tokens expire after 1 year by default

Alternative Package Names

If @clickup/cli is not available, consider:

  • clickup-cli
  • cu-cli
  • @timimsms/clickup-cli (personal scope)

Related to PR #4

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions