Skip to content

Commit 4234d5b

Browse files
committed
chore: rename changeset scripts
1 parent 54107d2 commit 4234d5b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
id: changesets
4343
with:
4444
# this expects you to have a script called release which does a build for your packages and calls changeset publish
45-
publish: pnpm run release
46-
version: pnpm run version-packages
45+
publish: pnpm run changeset:release
46+
version: pnpm run changeset:version-packages
4747
commit: 'chore(release): update monorepo packages versions'
4848
createGithubReleases: true
4949
env:

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"type": "module",
55
"scripts": {
66
"build": "pnpm -r run build",
7-
"changelog": "changeset",
8-
"changelog:commit": "git add ./.changeset && git commit -m 'chore(docs): add changesets'",
7+
"changeset:add": "changeset",
8+
"changeset:commit": "git add ./.changeset && git commit -m 'chore(docs): add changesets'",
9+
"changeset:release": "pnpm run build && changeset publish",
10+
"changeset:version-packages": "changeset version && pnpm format",
911
"dev": "pnpm -r --parallel run dev",
1012
"format": "pnpm format:prettier && pnpm format:pkg",
1113
"format:pkg": "bun run --bun sort-package-json package.json packages/*/package.json",
@@ -14,13 +16,11 @@
1416
"lint:madge": "bun run --bun madge --circular --extensions ts,tsx packages/",
1517
"lint:prettier": "bun run --bun prettier --check README.md .github/ ./packages",
1618
"prepare": "pnpm format:pkg && husky",
17-
"release": "pnpm run build && changeset publish",
1819
"test": "vitest --run",
1920
"test:watch": "vitest",
2021
"typecheck": "pnpm -r run typecheck",
2122
"update-deps": "pnpm -r up --latest --save",
22-
"postupdate-deps": "pnpm install && echo 'Installed dependencies again to apply any pnpm overrides.'",
23-
"version-packages": "changeset version && pnpm format"
23+
"postupdate-deps": "pnpm install && echo 'Installed dependencies again to apply any pnpm overrides.'"
2424
},
2525
"devDependencies": {
2626
"@changesets/changelog-github": "^0.5.1",

0 commit comments

Comments
 (0)