Skip to content

Commit 3f71eee

Browse files
Fix incorrect package.json path in auto-bumper workflow
Updated the auto-bumper GitHub Actions workflow to point to the root-level `package.json` instead of the nested `surveyjs-builder` path. This ensures the correct package file is referenced during automated operations.
1 parent c113c39 commit 3f71eee

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/auto-bumper.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ jobs:
2121
with:
2222
script: |
2323
const fs = require('fs');
24-
const pkg = JSON.parse(fs.readFileSync('./packages/surveyjs-builder/package.json', 'utf8'));
25-
github.rest.issues.createComment({
24+
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
25+
// 1) Create the comment
26+
const { data: comment } = await github.rest.issues.createComment({
2627
issue_number: context.issue.number,
2728
owner: context.repo.owner,
2829
repo: context.repo.repo,
2930
body: `Okay boss, ⏳ Bumping version to ${pkg.version}...`
30-
})
31+
});
32+
33+
// 2) React to that comment with a thumbs-up
34+
await github.rest.reactions.createForIssueComment({
35+
owner: context.repo.owner,
36+
repo: context.repo.repo,
37+
comment_id: comment.id,
38+
content: '+1' // 👍
39+
});
40+
3141

3242
- name: Checkout
3343
uses: actions/checkout@v4

0 commit comments

Comments
 (0)