Skip to content
Source
Sign inSign up
TanStack/showcase
A read-only demo of every feature
Every page of this repository is open, and nothing can change. Take a guided tour of what TanStack Source does.

ci: publish a package preview of each pull request #12

MergedAlemTuzlakmerged 1 commit intomain fromci/package-previewsmerged by AlemTuzlak

AlemTuzlakcommented

Each pull request into main now gets a package preview: CI builds the package and puts the tarball on the forge, and the Package previews card of the pull request shows one install line.

What changed

  • .source/workflows/preview.ts: a preview workflow with one job. It installs, builds, and runs packagePreview({ npm: ['.'] }), because the package is the root of the repository.
  • package.json: a build script (tsc to dist), with main, types, exports and files that point at dist.
  • tsconfig.build.json: the build config. It writes .js and .d.ts files, and rewrites the .ts imports to .js.

This pull request gets no preview itself, because a pull request run takes the permissions of its jobs from main. The next pull request gets one.

    1. AlemTuzlak merged this2025880

Sign in to join this conversation.