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
2 changes: 1 addition & 1 deletion .github/workflows/ci-turbo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: Cache for Turbo
uses: rharkor/[email protected]
- name: Build
run: pnpm build:ci
run: pnpm run turbo build
2 changes: 1 addition & 1 deletion .github/workflows/publish-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm build:ci
- run: pnpm run turbo build
- run: pnpm run publish
2 changes: 1 addition & 1 deletion apps/api-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": "22"
},
"scripts": {
"build": "next build",
"build:vercel": "next build",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix . --max-warnings 0",
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_gbljYVzp0m5EpCuOF6nZpM4WMFM6 vercel env pull",
Expand Down
2 changes: 1 addition & 1 deletion apps/api-reference/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"tasks": {
"build": {
"build:vercel": {
"env": [
"WALLETCONNECT_PROJECT_ID",
"AMPLITUDE_API_KEY",
Expand Down
3 changes: 2 additions & 1 deletion apps/api-reference/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "../../vercel-ignore.sh"
"ignoreCommand": "../../vercel-ignore.sh",
"buildCommand": "turbo run build:vercel --filter @pythnetwork/api-reference"
}
2 changes: 1 addition & 1 deletion apps/insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": "22"
},
"scripts": {
"build": "next build",
"build:vercel": "next build",
"fix:format": "prettier --write .",
"fix:lint:eslint": "eslint --fix .",
"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
Expand Down
2 changes: 1 addition & 1 deletion apps/insights/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"tasks": {
"build": {
"build:vercel": {
"env": [
"VERCEL_ENV",
"GOOGLE_ANALYTICS_ID",
Expand Down
3 changes: 2 additions & 1 deletion apps/insights/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "../../vercel-ignore.sh"
"ignoreCommand": "../../vercel-ignore.sh",
"buildCommand": "turbo run build:vercel --filter @pythnetwork/insights"
}
2 changes: 1 addition & 1 deletion apps/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": "22"
},
"scripts": {
"build": "next build",
"build:vercel": "next build",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix . --max-warnings 0",
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_3TIYzlYYncZx7wRtfmzG2YUsNzKp vercel env pull",
Expand Down
2 changes: 1 addition & 1 deletion apps/staking/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"tasks": {
"build": {
"build:vercel": {
"env": [
"IP_ALLOWLIST",
"GOVERNANCE_ONLY_REGIONS",
Expand Down
3 changes: 2 additions & 1 deletion apps/staking/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "../../vercel-ignore.sh"
"ignoreCommand": "../../vercel-ignore.sh",
"buildCommand": "turbo run build:vercel --filter @pythnetwork/staking"
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"pnpm": "^9.15.3"
},
"scripts": {
"build:ci": "turbo build --filter=!./apps/api-reference --filter=!./apps/insights --filter=!./apps/staking",
"fix:format": "prettier --write .",
"install:modules": "[ $CI ] && true || pnpm install",
"publish": "lerna publish from-package --no-private --no-git-tag-version --yes",
Expand Down
19 changes: 19 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,25 @@
],
"outputs": ["dist/esm/**"]
},
"build:vercel": {
"dependsOn": [
"//#install:modules",
"pull:env",
"^build",
"build:cjs",
"build:esm"
],
"inputs": [
"$TURBO_DEFAULT$",
"!README.md",
"!**/*.test.*",
"!jest.config.js",
"!eslint.config.js",
"!prettier.config.js",
"!vercel.json"
],
"outputs": ["lib/**", "dist/**", ".next/**", "!.next/cache/**"]
},
"fix": {
"dependsOn": ["fix:lint", "fix:format"],
"cache": false
Expand Down