Skip to content

Commit 81760c4

Browse files
committed
Add release hook
1 parent 2d1e84d commit 81760c4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,3 @@ jobs:
4949
env:
5050
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
53-
# Rebuild packages after version bump to ensure dist/package.json is updated
54-
- name: Rebuild packages after version bump
55-
run: npm run build

packages/client/.release-it.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
"commitMessage": "Release ${tagName}",
1010
"tagAnnotation": "Release ${tagName}",
1111
"commitArgs": "--all"
12+
},
13+
"hooks": {
14+
"before:release": "npm run build"
1215
}
1316
}

0 commit comments

Comments
 (0)