Skip to content

Commit

Permalink
ci: Use pkg-pr-new templates (#7676)
Browse files Browse the repository at this point in the history
* WIP: Try pkg-pr-new templates

* Remove approved

* Try one dir

* Update preview.yml

* Update preview.yml

* Update preview.yml

* Test moving to dep

* Merge with pr.yml

* Update example names

* Use pnpm pack

* All examples

* Undo angular basic change

* Remove .codesandbox/ci.json
  • Loading branch information
lachlancollins committed Jul 6, 2024
1 parent 2273105 commit ea4d8f2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 63 deletions.
27 changes: 0 additions & 27 deletions .codesandbox/ci.json

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,17 @@ jobs:
directory: packages
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Build Packages
run: pnpm run build:all
- name: Publish Previews
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
29 changes: 0 additions & 29 deletions .github/workflows/preview.yml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/react/nextjs-app-prefetching/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nextjs-app-prefetching",
"name": "@tanstack/query-example-react-nextjs-app-prefetching",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/shadow-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "shadow-dom",
"name": "@tanstack/query-example-react-shadow-dom",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "solid-query-astro-example",
"name": "@tanstack/query-example-solid-astro",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/solid-start-streaming/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "solid-start-streaming-example",
"name": "@tanstack/query-example-solid-start-streaming",
"private": true,
"type": "module",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
"test:build": "nx affected --target=test:build --exclude=examples/**",
"test:types": "nx affected --target=test:types --exclude=examples/**",
"test:knip": "knip",
"build": "nx affected --target=build --exclude=examples/**",
"build:all": "nx run-many --target=build --exclude=examples/**",
"build:csb": "nx run-many --target=build --exclude=examples/** --exclude=integrations/**",
"build": "nx affected --target=build --exclude=examples/** --exclude=integrations/**",
"build:all": "nx run-many --target=build --exclude=examples/** --exclude=integrations/**",
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
"dev": "pnpm run watch",
"prettier": "prettier --ignore-unknown '**/*'",
Expand Down

0 comments on commit ea4d8f2

Please sign in to comment.