Skip to content

Add npm publish workflow and prepublish build step #28

@that-github-user

Description

@that-github-user

Summary

package.json specifies "bin": { "thinktank": "./dist/cli.js" } but:

  1. dist/ is gitignored (correct)
  2. No prepublishOnly script to build before publishing
  3. No GitHub Actions workflow to automate npm releases

Users who npm install -g thinktank will get a broken install because dist/ doesn't exist.

Proposed fix

package.json

"scripts": {
  "prepublishOnly": "npm run build"
}

.github/workflows/release.yml

Trigger on version tags, build, and publish to npm.

Acceptance criteria

  • npm pack produces a working package with dist/ included
  • GitHub Action publishes to npm on v* tags
  • README install instructions work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions