Skip to content

Commit e11c5d1

Browse files
docs: add clarifications to versioning steps in readme
1 parent c6e09cc commit e11c5d1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,13 @@ npm test
119119
rm -rf dist && npm run build:lib
120120

121121
# 3. Bump the version in package.json (patch, minor, or major)
122+
# Using this command automatically makes a commit with the
123+
# updated package.json and package-lock.json
122124
npm version patch # e.g. 0.3.1 -> 0.3.2
123125

124-
# 4. Publish to npm (uses "publishConfig": {"access": "public"} from package.json)
126+
# 4. Login to npm (if not already) and publish
127+
# (uses "publishConfig": {"access": "public"} from package.json)
128+
npm login
125129
npm publish
126130

127131
# 5. Push the version commit

0 commit comments

Comments
 (0)