Skip to content

Commit d12f9fb

Browse files
committed
chore: merge main
2 parents 6e0bd88 + bc3ce76 commit d12f9fb

File tree

127 files changed

+1806
-2591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1806
-2591
lines changed

.changeset/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
33
"changelog": false,
44
"commit": false,
5+
"fixed": [["@react-spring/*"]],
56
"linked": [],
67
"access": "public",
78
"baseBranch": "main",

.changeset/cool-brooms-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@react-spring/core': patch
3+
---
4+
5+
Export missing type AnimationConfig

.codesandbox/ci.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"root": true,
3+
"extends": ["react-spring"]
4+
}

.github/workflows/bundle-size.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,35 @@ on:
77

88
jobs:
99
size:
10+
name: 'Bundle Size'
11+
if: github.repository == 'pmndrs/react-spring'
1012
runs-on: ubuntu-latest
11-
1213
steps:
1314
- name: Checkout repo
1415
uses: actions/checkout@v3
1516

16-
- name: Setup node
17-
uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Get yarn cache directory path
22+
id: yarn-cache-dir
23+
run: echo "::set-output name=dir::$(yarn cache dir)"
24+
25+
- name: Restore yarn cache
26+
uses: actions/cache@v3
27+
id: yarn-cache
1828
with:
19-
node-version: 16
29+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
30+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-yarn-
2033
2134
- name: Install
22-
run: yarn install
35+
run: yarn install --immutable
2336

2437
- name: Build packages
25-
run: yarn build
38+
run: yarn build --filter=!@react-spring/doc
2639

2740
- uses: preactjs/compressed-size-action@v2
2841
with:

.github/workflows/experimental.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
release:
8-
name: 'Release'
7+
experimental:
8+
name: 'Experimental Release'
9+
if: github.repository == 'pmndrs/react-spring'
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Cancel Previous Runs
@@ -36,10 +37,10 @@ jobs:
3637
${{ runner.os }}-yarn-
3738
3839
- name: Install
39-
run: yarn install
40+
run: yarn install --immutable
4041

41-
- name: Install
42-
run: yarn build
42+
- name: Build
43+
run: yarn build --filter=!@react-spring/doc
4344

4445
- run: ./scripts/version-and-publish.sh
4546
env:

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: Build
4141
run: yarn build
4242

43+
- name: Lint
44+
run: yarn lint
45+
4346
- name: Typecheck
4447
run: yarn test:ts
4548

.github/workflows/nightly.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: 'Nightly Releases'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
nightly:
9+
name: 'Nightly Release'
10+
if: github.repository == 'pmndrs/react-spring'
11+
runs-on: ubuntu-latest
12+
outputs:
13+
NEXT_VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
14+
steps:
15+
- name: Cancel Previous Runs
16+
uses: styfle/cancel-workflow-action@0.11.0
17+
with:
18+
access_token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- uses: actions/checkout@v3
21+
22+
- name: Check for changes
23+
id: version
24+
run: |
25+
# get latest commit sha
26+
SHA=$(git rev-parse HEAD)
27+
# get first 7 characters of sha
28+
SHORT_SHA=${SHA::7}
29+
# get latest nightly tag
30+
LATEST_NIGHTLY_TAG=$(git tag -l v0.0.0-nightly-\* --sort=-creatordate | head -n 1)
31+
# check if last commit to main would be the nightly tag we're about to create (minus the date)
32+
# if it is, we'll skip the nightly creation
33+
# if not, we'll create a new nightly tag
34+
if [[ ${LATEST_NIGHTLY_TAG} == v0.0.0-nightly-${SHORT_SHA} ]]; then
35+
echo "🛑 Latest nightly tag is the same as the latest commit sha, skipping nightly release"
36+
else
37+
# v0.0.0-nightly-<short sha>-<date>
38+
NEXT_VERSION=nightly-${SHORT_SHA}
39+
# set output so it can be used in other jobs
40+
echo "NEXT_VERSION=${NEXT_VERSION}" >> $GITHUB_OUTPUT
41+
fi
42+
43+
- uses: actions/setup-node@v3
44+
if: steps.version.outputs.NEXT_VERSION
45+
with:
46+
node-version: 18
47+
48+
- name: Get yarn cache directory path
49+
if: steps.version.outputs.NEXT_VERSION
50+
id: yarn-cache-dir
51+
run: echo "::set-output name=dir::$(yarn cache dir)"
52+
53+
- name: Restore yarn cache
54+
uses: actions/cache@v3
55+
if: steps.version.outputs.NEXT_VERSION
56+
id: yarn-cache
57+
with:
58+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
59+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
60+
restore-keys: |
61+
${{ runner.os }}-yarn-
62+
63+
- name: Install
64+
if: steps.version.outputs.NEXT_VERSION
65+
run: yarn install --immutable
66+
67+
- name: Build
68+
if: steps.version.outputs.NEXT_VERSION
69+
run: yarn build --filter=!@react-spring/docs
70+
71+
- name: Setup npmrc
72+
if: steps.version.outputs.NEXT_VERSION
73+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
74+
75+
- run: ./scripts/version-and-publish.sh
76+
if: steps.version.outputs.NEXT_VERSION
77+
env:
78+
VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
79+
DIST_TAG: nightly
80+
81+
- name: Tag
82+
uses: mathieudutour/github-tag-action@v6.1
83+
with:
84+
github_token: ${{ secrets.GITHUB_TOKEN }}
85+
custom_tag: '0.0.0-${{ steps.version.outputs.NEXT_VERSION }}'

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarn/patches/@remix-run-dev-npm-1.15.0-33b55fa3ee.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/dist/compiler/plugins/mdx.js b/dist/compiler/plugins/mdx.js
2-
index 651ba9dfe532b84c3f74e47c20e7b71b6b34e0dd..0184a5ad6ef5b1c68aeb2503f5d96537ec6bea2d 100644
2+
index 727fa32c7ff0db6fd1db6ab81aa9c6d9d819d4a4..51ab32cb5a62dfe54883d7004f5c3499f3dc2422 100644
33
--- a/dist/compiler/plugins/mdx.js
44
+++ b/dist/compiler/plugins/mdx.js
55
@@ -96,7 +96,8 @@ export const handle = typeof attributes !== "undefined" && attributes.handle;

0 commit comments

Comments
 (0)