Skip to content

Commit 6fd2539

Browse files
authored
docs: Update publish runbook (#934)
* docs: Update publish runbook * use sed * fix
1 parent e3298e3 commit 6fd2539

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,20 @@ ls packages/core-bridge/releases/
194194

195195
npx lerna version patch --force-publish='*' # or major|minor|etc, or leave out to be prompted. either way, you get a confirmation dialog.
196196

197-
# to only publish tilde deps, see section `# Tilde deps` instead of doing next step
198-
npx lerna publish from-git # add `--dist-tag next` for pre-release versions
197+
# replace TODO with the tilde version, like: ~1.5.0
198+
sed -i '' 's/file:\.\.\/.*"/TODO"/g' packages/*/package.json
199199

200+
git add packages
201+
git commit -m 'Depend on ~1.5.0'
202+
git tag v1.5.0 -f
203+
git push origin v1.5.0 -f
204+
npx lerna publish from-package # add `--dist-tag next` for pre-release versions
205+
git reset HEAD^ --hard
206+
```
207+
208+
Finally:
209+
210+
```
200211
npm deprecate temporalio@^1.0.0 "Instead of installing temporalio, we recommend directly installing our packages: npm remove temporalio; npm install @temporalio/client @temporalio/worker @temporalio/workflow @temporalio/activity"
201212
```
202213

@@ -224,20 +235,6 @@ npm deprecate temporalio@^1.0.0 "Instead of installing temporalio, we recommend
224235
npm test
225236
```
226237

227-
### Tilde deps
228-
229-
Since `lerna version --exact` doesn't work with local path deps like `file:../common`, do this between `lerna version` and `lerna publish`:
230-
231-
- Find & replace `file:../.*"` with eg `~1.5.0` in `packages/`.
232-
233-
```sh
234-
git tag v1.5.0 -f
235-
git push origin v1.5.0 -f
236-
npx lerna publish from-package
237-
```
238-
239-
(`from-git` may miss some packages)
240-
241238
### Updating published packages
242239

243240
`npm` commands we may need to use:

0 commit comments

Comments
 (0)