Skip to content

Commit b748ae1

Browse files
committed
Update versioning job.
1 parent 88ab608 commit b748ae1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: pnpm install --frozen-lockfile
3131

3232
- name: Bump version
33-
run: pnpm run version -- ${{ inputs.version }}
33+
run: pnpm run version ${{ inputs.version }}
3434

3535
- name: Create PR with new versions
3636
uses: peter-evans/create-pull-request@v6

scripts/version.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ await Promise.all([
3232
await new Promise((resolve, reject) => {
3333
exec(
3434
`git commit --all --message="v${newVersion}"; git tag "v${newVersion}";`,
35-
(error, stdout) => {
35+
(error, stdout, stderr) => {
3636
if (error) {
3737
reject(error);
3838
} else {
3939
console.log(stdout);
40+
console.log(stderr);
4041
resolve(stdout);
4142
}
4243
}

0 commit comments

Comments
 (0)