Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/code-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
uses: oven-sh/setup-bun@v2
- name: Deploy
shell: bash
run: bunx vercel --force --token "$VERCEL_TOKEN"
run: bunx vercel --force --token "$VERCEL_TOKEN" --build-env GITHUB_TOKEN="$GH_TOKEN"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_PREVIEW }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/code-deploy-producition-quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
- name: Deploy
if: ${{ steps.filter.outputs.only_data_changed == 'true' }}
shell: bash
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-quick.json
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-quick.json --build-env GITHUB_TOKEN="$GH_TOKEN"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/code-deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
uses: oven-sh/setup-bun@v2
- name: Deploy
shell: bash
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --build-env GITHUB_TOKEN="$GH_TOKEN"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
Expand Down
104 changes: 52 additions & 52 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
"next-compose-plugins": "^2.2.1",
"next-fonts": "^1.5.1",
"next-images": "^1.8.5",
"oxfmt": "^0.41.0",
"oxlint": "^1.56.0",
"oxlint-tsgolint": "^0.17.1",
"oxfmt": "^0.42.0",
"oxlint": "^1.57.0",
"oxlint-tsgolint": "^0.17.3",
"simple-git-hooks": "^2.13.1",
"typescript": "^5.9.3",
"typescript": "^6.0.2",
"user-agent-data-types": "^0.4.2"
},
"simple-git-hooks": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type LibraryType } from '~/types';
export const REQUEST_SLEEP = 5000;

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

export async function makeGraphqlQuery(query: string, variables = {}) {
const result = await fetch(GRAPHQL_API, {
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"moduleResolution": "bundler",
"target": "esnext",
"allowJs": false,
"allowSyntheticDefaultImports": true,
"verbatimModuleSyntax": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"isolatedModules": true,
Expand Down
7 changes: 1 addition & 6 deletions vercel-quick.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "bun build:quick",
"build": {
"env": {
"GITHUB_TOKEN": "@github_token"
}
}
"buildCommand": "bun build:quick"
}
7 changes: 1 addition & 6 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"build": {
"env": {
"GITHUB_TOKEN": "@github_token"
}
}
"$schema": "https://openapi.vercel.sh/vercel.json"
}