ci: interscript-ts port is on main — clone main instead of the port b… #241
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: build | ||
| on: | ||
| push: | ||
| branches: [main, astro-migration] | ||
| pull_request: | ||
| workflow_dispatch: | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Use Node | ||
| uses: actions/setup-node@v7 | ||
| with: | ||
| node-version: "22" | ||
| cache: npm | ||
| - name: Clone interscript-ts (file: dependency) | ||
| run: | | ||
| git clone --depth=1 --branch main https://github.com/interscript/interscript-ts.git ../interscript-ts | ||
| cd ../interscript-ts && npm ci && npm run build | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Type check | ||
| run: npm run check | ||
| - name: Build site | ||
| run: npm run build | ||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: site | ||
| path: dist | ||