-
Notifications
You must be signed in to change notification settings - Fork 0
Add npm publish workflow and prepublish build step #28
Copy link
Copy link
Closed
Description
Summary
package.json specifies "bin": { "thinktank": "./dist/cli.js" } but:
dist/is gitignored (correct)- No
prepublishOnlyscript to build before publishing - 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 packproduces a working package with dist/ included - GitHub Action publishes to npm on
v*tags - README install instructions work
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels