Skip to content

feat: Bumped deps and refactored usages of forwardRef #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 44 additions & 44 deletions .github/workflows/experimental.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: 'Experimental Releases'

on:
workflow_dispatch:

env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
experimental:
name: 'Experimental Release'
if: github.repository == 'pmndrs/react-spring'
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4

- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: Install
run: yarn install --immutable

- name: Build
run: yarn build-ci

- run: ./scripts/version-and-publish.sh
env:
VERSION: '${{ github.sha }}'
DIST_TAG: experimental
# name: 'Experimental Releases'

# on:
# workflow_dispatch:

# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

# concurrency:
# group: ${{ github.workflow }}-${{ github.ref_name }}
# cancel-in-progress: true

# jobs:
# experimental:
# name: 'Experimental Release'
# if: github.repository == 'pmndrs/react-spring'
# runs-on: ubuntu-latest
# steps:
# - name: Cancel Previous Runs
# uses: styfle/[email protected]
# with:
# access_token: ${{ secrets.GITHUB_TOKEN }}

# - uses: actions/checkout@v4

# - name: Setup npmrc
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

# - uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: 'yarn'

# - name: Install
# run: yarn install --immutable

# - name: Build
# run: yarn build-ci

# - run: ./scripts/version-and-publish.sh
# env:
# VERSION: '${{ github.sha }}'
# DIST_TAG: experimental
138 changes: 69 additions & 69 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
name: 'Nightly Releases'
# name: 'Nightly Releases'

on:
schedule:
- cron: '0 0 * * *'
# on:
# schedule:
# - cron: '0 0 * * *'

env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref_name }}
# cancel-in-progress: true

jobs:
nightly:
name: 'Nightly Release'
if: github.repository == 'pmndrs/react-spring'
runs-on: ubuntu-latest
outputs:
NEXT_VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
# jobs:
# nightly:
# name: 'Nightly Release'
# if: github.repository == 'pmndrs/react-spring'
# runs-on: ubuntu-latest
# outputs:
# NEXT_VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
# steps:
# - name: Cancel Previous Runs
# uses: styfle/[email protected]
# with:
# access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4
# - uses: actions/checkout@v4

- name: Check for changes
id: version
run: |
# get latest commit sha
SHA=$(git rev-parse HEAD)
# get first 7 characters of sha
SHORT_SHA=${SHA::7}
# get latest nightly tag
LATEST_NIGHTLY_TAG=$(git tag -l v0.0.0-nightly-\* --sort=-creatordate | head -n 1)
# check if last commit to main would be the nightly tag we're about to create (minus the date)
# if it is, we'll skip the nightly creation
# if not, we'll create a new nightly tag
if [[ ${LATEST_NIGHTLY_TAG} == v0.0.0-nightly-${SHORT_SHA} ]]; then
echo "🛑 Latest nightly tag is the same as the latest commit sha, skipping nightly release"
exit 1
else
# v0.0.0-nightly-<short sha>-<date>
NEXT_VERSION=nightly-${SHORT_SHA}
# set output so it can be used in other jobs
echo "NEXT_VERSION=${NEXT_VERSION}" >> $GITHUB_OUTPUT
exit 0
fi
# - name: Check for changes
# id: version
# run: |
# # get latest commit sha
# SHA=$(git rev-parse HEAD)
# # get first 7 characters of sha
# SHORT_SHA=${SHA::7}
# # get latest nightly tag
# LATEST_NIGHTLY_TAG=$(git tag -l v0.0.0-nightly-\* --sort=-creatordate | head -n 1)
# # check if last commit to main would be the nightly tag we're about to create (minus the date)
# # if it is, we'll skip the nightly creation
# # if not, we'll create a new nightly tag
# if [[ ${LATEST_NIGHTLY_TAG} == v0.0.0-nightly-${SHORT_SHA} ]]; then
# echo "🛑 Latest nightly tag is the same as the latest commit sha, skipping nightly release"
# exit 1
# else
# # v0.0.0-nightly-<short sha>-<date>
# NEXT_VERSION=nightly-${SHORT_SHA}
# # set output so it can be used in other jobs
# echo "NEXT_VERSION=${NEXT_VERSION}" >> $GITHUB_OUTPUT
# exit 0
# fi

- uses: actions/setup-node@v4
if: steps.version.outputs.NEXT_VERSION
with:
node-version: 20
cache: 'yarn'
# - uses: actions/setup-node@v4
# if: steps.version.outputs.NEXT_VERSION
# with:
# node-version: 20
# cache: 'yarn'

- name: Install
if: steps.version.outputs.NEXT_VERSION
run: yarn install --immutable
# - name: Install
# if: steps.version.outputs.NEXT_VERSION
# run: yarn install --immutable

- name: Build
if: steps.version.outputs.NEXT_VERSION
run: yarn build-ci
# - name: Build
# if: steps.version.outputs.NEXT_VERSION
# run: yarn build-ci

- name: Setup npmrc
if: steps.version.outputs.NEXT_VERSION
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
# - name: Setup npmrc
# if: steps.version.outputs.NEXT_VERSION
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- run: ./scripts/version-and-publish.sh
if: steps.version.outputs.NEXT_VERSION
env:
VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
DIST_TAG: nightly
# - run: ./scripts/version-and-publish.sh
# if: steps.version.outputs.NEXT_VERSION
# env:
# VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
# DIST_TAG: nightly

- name: Tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: '0.0.0-${{ steps.version.outputs.NEXT_VERSION }}'
# - name: Tag
# uses: mathieudutour/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# custom_tag: '0.0.0-${{ steps.version.outputs.NEXT_VERSION }}'
Loading
Loading