Skip to content

Commit daa9738

Browse files
chore(deps): update dependency prettier to v3.6.2 (#309)
* chore(deps): update dependency prettier to v3.6.2 * up --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
1 parent 8234253 commit daa9738

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.github/workflows/update-prettier.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ jobs:
88
update_prettier:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: actions/create-github-app-token@v2
12+
id: app-token
13+
with:
14+
app-id: ${{ vars.OCTOKIT_APP_ID }}
15+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
1116
- uses: actions/checkout@v5
1217
- uses: actions/setup-node@v6
1318
with:
@@ -17,7 +22,7 @@ jobs:
1722
- run: npm run lint:fix
1823
- uses: gr2m/create-or-update-pull-request-action@v1.x
1924
env:
20-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
25+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2126
with:
2227
title: Prettier updated
2328
body: An update to prettier required updates to your code.

package-lock.json

Lines changed: 4 additions & 7 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
@@ -33,7 +33,7 @@
3333
"esbuild": "^0.25.0",
3434
"fetch-mock": "^11.0.0",
3535
"glob": "^11.0.0",
36-
"prettier": "3.5.3",
36+
"prettier": "3.6.2",
3737
"semantic-release-plugin-update-version-in-files": "^2.0.0",
3838
"typescript": "^5.0.0",
3939
"vitest": "^3.0.0"

src/exchange-device-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ export async function exchangeDeviceCode(
147147
if ("refresh_token" in response.data) {
148148
const apiTimeInMs = new Date(response.headers.date as string).getTime();
149149

150-
(authentication.refreshToken = response.data.refresh_token),
150+
((authentication.refreshToken = response.data.refresh_token),
151151
(authentication.expiresAt = toTimestamp(
152152
apiTimeInMs,
153153
response.data.expires_in,
154154
)),
155155
(authentication.refreshTokenExpiresAt = toTimestamp(
156156
apiTimeInMs,
157157
response.data.refresh_token_expires_in,
158-
));
158+
)));
159159
}
160160

161161
delete authentication.scopes;

src/exchange-web-flow-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ export async function exchangeWebFlowCode(
8989
if ("refresh_token" in response.data) {
9090
const apiTimeInMs = new Date(response.headers.date as string).getTime();
9191

92-
(authentication.refreshToken = response.data.refresh_token),
92+
((authentication.refreshToken = response.data.refresh_token),
9393
(authentication.expiresAt = toTimestamp(
9494
apiTimeInMs,
9595
response.data.expires_in,
9696
)),
9797
(authentication.refreshTokenExpiresAt = toTimestamp(
9898
apiTimeInMs,
9999
response.data.refresh_token_expires_in,
100-
));
100+
)));
101101
}
102102

103103
delete authentication.scopes;

0 commit comments

Comments
 (0)