Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(www): build errors and CI improvements #367

Merged
merged 16 commits into from
Aug 29, 2022
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
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://t3.gg/discord
about: Ask questions and discuss with other community members
7 changes: 5 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"area: cli":
- any: ["src/**"]
- any: ["cli/src/**"]

"area: t3-app":
- any: ["template/**"]
- any: ["cli/template/**"]

"documentation":
- any: ["www/**", "**/*.md"]
22 changes: 22 additions & 0 deletions .github/workflows/PR-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,25 @@ jobs:
# through. this way it ensures that it is the app's configs that are being used
- run: cd cli && pnpm start -y ../../ci-test-app
- run: cd ../ci-test-app && pnpm build

build-www:
runs-on: ubuntu-latest
# We explicitely build this in GHA & Vercel since Vercel doesn't seem to catch some errors
# meaning the www might be deployed even with errors
name: Build www
needs: install-deps
steps:
- uses: actions/checkout@v3
- name: Load node_modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v2.2.2
with:
version: 7.2.1
- uses: actions/setup-node@v3
with:
node-version: 16
- run: pnpm run check --filter=www
- run: pnpm build:www
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.5.3",
"turbo": "^1.4.3"
"ts-node": "^10.9.1",
"turbo": "^1.4.3",
"typescript": "^4.7.4"
}
}
Loading