Skip to content

Commit 661edab

Browse files
chore(deps): update dependency prettier to v3.6.2 (#1160)
* chore(deps): update dependency prettier to v3.6.2 * ci: use @octokit app * style: prettier --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]> Co-authored-by: wolfy1339 <[email protected]>
1 parent e668c0c commit 661edab

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/update-prettier.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ jobs:
77
update_prettier:
88
runs-on: ubuntu-latest
99
steps:
10+
- uses: actions/create-github-app-token@v2
11+
id: app-token
12+
with:
13+
app-id: ${{ vars.OCTOKIT_APP_ID }}
14+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
1015
- uses: actions/checkout@v4
1116
- uses: actions/setup-node@v4
1217
with:
@@ -16,7 +21,7 @@ jobs:
1621
- run: npm run lint:fix
1722
- uses: gr2m/[email protected]
1823
env:
19-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
24+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2025
with:
2126
title: Prettier updated
2227
body: An update to prettier required updates to your code.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"esbuild": "^0.25.0",
6161
"express": "^5.1.0",
6262
"get-port": "^7.1.0",
63-
"prettier": "3.5.3",
63+
"prettier": "3.6.2",
6464
"prettier-plugin-packagejson": "^2.2.9",
6565
"tsx": "^4.19.3",
6666
"typescript": "^5.0.0",

test/unit/event-handler-wrap-error-handler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ describe("wrapErrorHandler", () => {
2424
it("error handler returns rejected Error", async () => {
2525
const promise = Promise.reject(new Error("oopsydoopsy"));
2626

27-
wrapErrorHandler(() => promise, new Error("oops")),
27+
(wrapErrorHandler(() => promise, new Error("oops")),
2828
await promise.catch(() => {
2929
assert(logCalls.length === 2);
3030
assert(/^FATAL/.test(logCalls[0][0]));
3131
assert(logCalls[1][0] instanceof Error);
3232
assert(logCalls[1][0].message === "oopsydoopsy");
33-
});
33+
}));
3434

3535
logCalls = [];
3636
});

0 commit comments

Comments
 (0)