fix(lint): load TS configs through file URLs #1487
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: website | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/website.yml" | |
| - "config/**" | |
| - "packages/**" | |
| - "website/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/website.yml" | |
| - "config/**" | |
| - "packages/**" | |
| - "website/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: website-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: packages/ttsc/go.mod | |
| cache-dependency-path: | | |
| packages/ttsc/go.sum | |
| packages/wasm/go.sum | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.6.4 | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| # The website's `build:compiler` step links against | |
| # `packages/wasm/dist/wasm_exec.js` and consumes `@ttsc/wasm`'s host | |
| # helper, so the wasm package must be built before `next build`. | |
| # @ttsc/playground is the website worker's `@ttsc/playground` import; | |
| # rspack resolves the package via its `main` field (`lib/src/index.js`), | |
| # which only exists after `tsc -p .` runs. | |
| - name: Build @ttsc/wasm | |
| run: pnpm --filter @ttsc/wasm build | |
| - name: Build @ttsc/playground | |
| run: pnpm --filter @ttsc/playground build | |
| - name: Build Website | |
| working-directory: website | |
| run: pnpm run build | |
| - name: Deploy | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: ./website/out |