Skip to content

Commit 7cf915b

Browse files
committed
chore: fix script to publish packages
1 parent f49d978 commit 7cf915b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ yarn format:write
178178

179179
### Conventional commits
180180

181-
Semaphore uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). A [command line utility](https://github.com/commitizen/cz-cli) to commit using the correct syntax can be used by running:
181+
ZK-Kit uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). A [command line utility](https://github.com/commitizen/cz-cli) to commit using the correct syntax can be used by running:
182182

183183
```bash
184184
yarn commit
@@ -208,7 +208,7 @@ yarn compile
208208

209209
```bash
210210
yarn version:bump <package-name> <version>
211-
# e.g. yarn version:bump utils 2.0.0
211+
# e.g. yarn version:bump imt.sol 2.0.0
212212
```
213213

214214
This step creates a commit and a git tag.
@@ -223,7 +223,7 @@ git push origin main
223223

224224
```bash
225225
git push origin <package-name>-<version>
226-
# e.g. git push origin utils-v2.0.0
226+
# e.g. git push origin imt.sol-v2.0.0
227227
```
228228

229229
After pushing the new git tag, a workflow will be triggered and will publish the package on [npm](https://www.npmjs.com/) and release a new version on Github with its changelogs automatically.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"compile": "yarn workspaces foreach -Ap run compile",
1111
"test": "yarn workspaces foreach -Ap run test:coverage",
12-
"version:bump": "yarn workspace @zk-kit/${0}.sol version ${1} && yarn remove:stable-version-field ${0} && NO_HOOK=1 git commit -am \"chore(${0}): v${1}\" && git tag ${0}.sol-v${1}",
12+
"version:bump": "yarn workspace @zk-kit/${0} version ${1} && yarn remove:stable-version-field ${0} && NO_HOOK=1 git commit -am \"chore(${0}): v${1}\" && git tag ${0}-v${1}",
1313
"version:publish": "yarn workspaces foreach -A --no-private npm publish --tolerate-republish --access public",
1414
"version:release": "changelogithub",
1515
"format": "prettier -c .",

0 commit comments

Comments
 (0)