feat(serverAssets): opt-in embed modes for large catalogs #10855
Workflow file for this run
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: ci | |
| on: | |
| push: { branches: [v2] } | |
| pull_request: { branches: [v2] } | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: { node-version: lts/*, cache: pnpm } | |
| - uses: oven-sh/setup-bun@v2 | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| with: { bun-version: latest } | |
| - uses: denoland/setup-deno@v1 | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| with: { deno-version: v2.x } | |
| - run: pnpm install | |
| - run: pnpm stub && pnpm lint | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| - run: pnpm test:types | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| - run: pnpm build | |
| - run: pnpm vitest --coverage | |
| # - uses: codecov/codecov-action@v3 | |
| publish-pkg-pr-new: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { fetch-depth: 0 } | |
| - run: npm i -fg corepack && corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: { node-version: lts/*, cache: "pnpm" } | |
| - run: pnpm install | |
| - run: pnpm build | |
| - run: pnpm dlx pkg-pr-new publish || true | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: { id-token: write, contents: read } | |
| needs: tests | |
| if: github.ref == 'refs/heads/v2' && github.event_name == 'push' && github.repository == 'nitrojs/nitro' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { fetch-depth: 0 } | |
| - run: npm i -fg corepack && corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: { node-version: lts/*, cache: "pnpm" } | |
| - run: pnpm install | |
| - run: pnpm changelogen --bump --canary nightly | |
| - run: npm i -g npm@latest && npm publish --provenance --access public --tag latest |