Skip to content

Commit

Permalink
Installed update-workspace-root-version (#133)
Browse files Browse the repository at this point in the history
chore: Installed update-workspace-root-version

Co-authored-by: ijlee2 <[email protected]>
  • Loading branch information
ijlee2 and ijlee2 authored Aug 29, 2024
1 parent caf684a commit 73a794a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ Here are some guidelines to help you and everyone else.
GITHUB_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> pnpm release:changelog
```
1. The workspace root's version (e.g. `0.1.3`) is more of an identifier than a (semantic) version. We will use it to name the tag that will be published.

In the root `package.json`, update the version following the "highest-version" formula:
The `release:changelog` script also updated the workspace root's version (by following the highest version formula). We will use it to name the tag that will be published.

```
# Highest version formula
workspace root version = max(
max(all package versions),
workspace root version + 0.0.1,
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
"lint": "pnpm --filter '*' lint",
"lint:fix": "pnpm --filter '*' lint:fix",
"prepare": "pnpm build",
"release:changelog": "changeset version",
"release:changelog": "changeset version; update-workspace-root-version",
"release:publish": "pnpm build && changeset publish",
"test": "pnpm --filter '*' test"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@changesets/get-github-info": "^0.6.0"
"@changesets/get-github-info": "^0.6.0",
"update-workspace-root-version": "^0.3.0"
},
"engines": {
"node": "18.* || >= 20",
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73a794a

Please sign in to comment.