diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 94450561..db8a6f47 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -17,11 +17,6 @@ body: The more information you fill in, the better the community can help you. - > ⚠️⚠️⚠️ TanStack Virtual v3 is on the horizon with beta builds and v2 is entering - > an LTS phase and will only be receiving patch-level fixes. If you are experiencing - > issues in v2 that require minor/feature or major/breaking changes, your issue will - > be redirected to v8 or possibly even closed if the issue has already been fixed in v3. - - type: textarea id: description attributes: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3300d25a..567e04a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,27 +2,40 @@ name: ci concurrency: group: publish-${{ github.github.base_ref }} cancel-in-progress: true -on: [push] +env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} +on: + push: + branches: + - 'main' + - 'beta' jobs: test-and-publish: name: 'Test & Publish' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout Repo + uses: actions/checkout@v3 with: fetch-depth: '0' - - uses: actions/setup-node@v3 + - name: Setup Pnpm + uses: pnpm/action-setup@v2.2.4 with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - cache: 'npm' - - run: | - npm i + version: 7 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16.19.0 + cache: 'pnpm' + - name: Install dependencies + run: pnpm --filter "./packages/**" --prefer-offline install --no-frozen-lockfile + - name: Publish + run: | git config --global user.name 'Tanner Linsley' git config --global user.email 'tannerlinsley@users.noreply.github.com' - npm run cipublish + pnpm cipublish env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 55ee7ec7..67aa0661 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,18 +1,27 @@ name: pr on: [pull_request] +env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: test: - name: 'Test (node ${{ matrix.node }})' + name: 'Test' runs-on: ubuntu-latest - strategy: - matrix: - node: [16] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Checkout Repo + uses: actions/checkout@v3 with: - node-version: ${{ matrix.node }} - - run: | - npm i - npm run build - npm run test + fetch-depth: '0' + - name: Setup Pnpm + uses: pnpm/action-setup@v2.2.4 + with: + version: 7 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16.19.0 + cache: 'pnpm' + - name: Install dependencies + run: pnpm --filter "./packages/**" --prefer-offline install --no-frozen-lockfile + - name: Build & Test + run: npx nx run-many --targets=test,build --projects=@tanstack/* --exclude=@tanstack/react-start diff --git a/README.md b/README.md index 5ab97a9d..4c14fb96 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![React Virtual Header](https://github.com/tanstack/virtual/raw/beta/media/header.png) +![React Virtual Header](https://github.com/tanstack/virtual/raw/main/media/header.png) Headless UI for virtualizing scrollable elements in TS/JS and React diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 2fce5c7f..10937ef4 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -9,29 +9,29 @@ Install your TanStack Virtual adapter as a dependency using your favorite npm pa ## React Virtual ```bash -$ npm install @tanstack/react-virtual@beta +$ npm install @tanstack/react-virtual ``` ## Solid Virtual ```bash -$ npm install @tanstack/solid-virtual@beta +$ npm install @tanstack/solid-virtual ``` ## Svelte Virtual ```bash -$ npm install @tanstack/svelte-virtual@beta +$ npm install @tanstack/svelte-virtual ``` ## Vue Virtual ```bash -$ npm install @tanstack/vue-virtual@beta +$ npm install @tanstack/vue-virtual ``` ## Virtual Core (no framework) ```bash -$ npm install @tanstack/virtual-core@beta +$ npm install @tanstack/virtual-core ```