Skip to content

Commit

Permalink
fix: test CI release
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Dec 1, 2023
1 parent f8be578 commit 3142313
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 32 deletions.
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
33 changes: 23 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
31 changes: 20 additions & 11 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 5 additions & 5 deletions docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 3142313

Please sign in to comment.