-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: WIP migrate all packages to use TanStack Config
- Loading branch information
1 parent
6b16bff
commit 4a6b92f
Showing
48 changed files
with
2,426 additions
and
2,407 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
name: ci | ||
concurrency: | ||
group: publish-${{ github.github.base_ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: override release tag | ||
required: false | ||
push: | ||
branches: | ||
- 'main' | ||
- 'alpha' | ||
- 'beta' | ||
branches: ['main', 'alpha', 'beta'] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} | ||
|
||
jobs: | ||
test-and-publish: | ||
if: github.repository == 'TanStack/store' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta') | ||
name: 'Test & Publish' | ||
name: Test & Publish | ||
if: github.repository == 'TanStack/store' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- uses: pnpm/[email protected] | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.15.0 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: 'pnpm' | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
- name: Install dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm run test:ci | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
run: pnpm run test:ci | ||
- name: Publish | ||
run: | | ||
git config --global user.name 'Tanner Linsley' | ||
|
@@ -52,5 +49,6 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
TAG: ${{ inputs.tag }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,43 @@ | ||
name: pr | ||
on: [pull_request] | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'media/**' | ||
- '**/*.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }} | ||
|
||
jobs: | ||
test: | ||
name: 'Test' | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Setup Pnpm | ||
uses: pnpm/action-setup@v2.2.4 | ||
fetch-depth: 0 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7 | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.19.0 | ||
cache: 'pnpm' | ||
node-version-file: .nvmrc | ||
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 | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
- name: Get base and head commits for `nx affected` | ||
uses: nrwl/nx-set-shas@v3 | ||
with: | ||
main-branch-name: 'main' | ||
- name: Run Checks | ||
run: pnpm run test:pr |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
//registry.npmjs.org/:_authToken=${NPM_TOKEN} | ||
prefer-workspace-packages=true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v14.17.6 | ||
v18.19.0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
**/.next | ||
**/.nx/cache | ||
**/.svelte-kit | ||
**/build | ||
**/coverage | ||
**/dist | ||
**/docs | ||
**/codemods/**/__testfixtures__ | ||
pnpm-lock.yaml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.