You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,15 +191,19 @@ yarn test
191
191
192
192
#### Step 4: Publish to npm
193
193
194
-
Publish the package to npm:
194
+
Publish the package to npm using changesets:
195
195
196
196
```bash
197
197
yarn release
198
198
```
199
199
200
-
This command:
201
-
- Runs `yarn build` (via `prepublishOnly` hook)
202
-
- Publishes `@lambdacurry/forms` to npm using `changeset publish`
200
+
This command runs `changeset publish`, which:
201
+
- Runs `yarn build` (via `prepublishOnly` hook in package.json)
202
+
- Publishes `@lambdacurry/forms` to npm (uses npm under the hood)
203
+
- Creates git tags for the release
204
+
- Requires you to be logged into npm (`npm login`)
205
+
206
+
**Note:**`changeset publish` uses npm CLI internally, so you must be authenticated with npm. The changeset system handles versioning, changelog generation, and publishing all in one workflow.
0 commit comments