Skip to content

Commit 660f5d7

Browse files
authored
upgrade to TypeScript 6, other bumps (#2307)
1 parent e1e985f commit 660f5d7

File tree

9 files changed

+65
-74
lines changed

9 files changed

+65
-74
lines changed

.github/workflows/code-deploy-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ jobs:
1515
uses: oven-sh/setup-bun@v2
1616
- name: Deploy
1717
shell: bash
18-
run: bunx vercel --force --token "$VERCEL_TOKEN"
18+
run: bunx vercel --force --token "$VERCEL_TOKEN" --build-env GITHUB_TOKEN="$GH_TOKEN"
1919
env:
20+
GH_TOKEN: ${{ secrets.GH_TOKEN_PREVIEW }}
2021
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
2122
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
2223
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'

.github/workflows/code-deploy-producition-quick.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
- name: Deploy
2828
if: ${{ steps.filter.outputs.only_data_changed == 'true' }}
2929
shell: bash
30-
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-quick.json
30+
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-quick.json --build-env GITHUB_TOKEN="$GH_TOKEN"
3131
env:
32+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3233
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
3334
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
3435
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787

.github/workflows/code-deploy-production.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
uses: oven-sh/setup-bun@v2
2626
- name: Deploy
2727
shell: bash
28-
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod
28+
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --build-env GITHUB_TOKEN="$GH_TOKEN"
2929
env:
30+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3031
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
3132
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
3233
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787

bun.lock

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@
7474
"next-compose-plugins": "^2.2.1",
7575
"next-fonts": "^1.5.1",
7676
"next-images": "^1.8.5",
77-
"oxfmt": "^0.41.0",
78-
"oxlint": "^1.56.0",
79-
"oxlint-tsgolint": "^0.17.1",
77+
"oxfmt": "^0.42.0",
78+
"oxlint": "^1.57.0",
79+
"oxlint-tsgolint": "^0.17.3",
8080
"simple-git-hooks": "^2.13.1",
81-
"typescript": "^5.9.3",
81+
"typescript": "^6.0.2",
8282
"user-agent-data-types": "^0.4.2"
8383
},
8484
"simple-git-hooks": {

scripts/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { type LibraryType } from '~/types';
55
export const REQUEST_SLEEP = 5000;
66

77
const GRAPHQL_API = 'https://api.github.com/graphql';
8-
const AUTHORIZATION = `bearer ${process.env.CI_CHECKS_TOKEN ?? process.env.GITHUB_TOKEN}`;
8+
const AUTHORIZATION = `bearer ${process.env.CI_CHECKS_TOKEN ?? process.env.GH_TOKEN ?? process.env.GITHUB_TOKEN}`;
99

1010
export async function makeGraphqlQuery(query: string, variables = {}) {
1111
const result = await fetch(GRAPHQL_API, {

tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"moduleResolution": "bundler",
77
"target": "esnext",
88
"allowJs": false,
9-
"allowSyntheticDefaultImports": true,
109
"verbatimModuleSyntax": true,
11-
"esModuleInterop": true,
1210
"forceConsistentCasingInFileNames": true,
1311
"incremental": true,
1412
"isolatedModules": true,

vercel-quick.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"buildCommand": "bun build:quick",
4-
"build": {
5-
"env": {
6-
"GITHUB_TOKEN": "@github_token"
7-
}
8-
}
3+
"buildCommand": "bun build:quick"
94
}

vercel.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"build": {
4-
"env": {
5-
"GITHUB_TOKEN": "@github_token"
6-
}
7-
}
2+
"$schema": "https://openapi.vercel.sh/vercel.json"
83
}

0 commit comments

Comments
 (0)