@bace51/cocktailjs-react 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -73,3 +73,21 @@ pnpm publish --filter ./packages/cocktailjs-react
73
73
  - Keep `react` as a peer dependency to avoid duplicate React instances in consumer apps.
74
74
 
75
75
  If you need help integrating the components or want additional examples, open an issue or request an example in the repo.
76
+
77
+
78
+ #####
79
+ cd packages/cocktailjs-react
80
+
81
+ # Option A — inline prompt (recommended so token isn't in shell history):
82
+ read -s -p "NPM token: " NPM_TOKEN; echo
83
+
84
+ # write temporary project-local .npmrc
85
+ printf "//registry.npmjs.org/:_authToken=%s\n" "$NPM_TOKEN" > .npmrc
86
+
87
+ # build and publish
88
+ pnpm run prepare
89
+ npm publish --access public
90
+
91
+ # remove the temporary file
92
+ rm -f .npmrc
93
+ unset NPM_TOKEN