-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release-next
- Loading branch information
Showing
7 changed files
with
50 additions
and
29 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,25 +1,28 @@ | ||
name: 🚀 Release (experimental) | ||
name: 🧪 Experimental Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v0.0.0-experimental*" | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
required: true | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
release: | ||
name: 🧑🔬 Experimental Release | ||
if: | | ||
github.repository == 'remix-run/react-router' && | ||
contains(github.ref, 'experimental') | ||
experimental: | ||
name: 🧪 Experimental Release | ||
if: github.repository == 'remix-run/react-router' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
# checkout using a custom token so that we can push later on | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: 📦 Setup pnpm | ||
|
@@ -28,12 +31,22 @@ jobs: | |
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: pnpm | ||
node-version-file: ".nvmrc" | ||
cache: "pnpm" | ||
|
||
- name: 📥 Install deps | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: ⤴️ Update version | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Remix Run Bot" | ||
SHORT_SHA=$(git rev-parse --short HEAD) | ||
NEXT_VERSION=0.0.0-experimental-${SHORT_SHA} | ||
git checkout -b experimental/${NEXT_VERSION} | ||
pnpm run version ${NEXT_VERSION} | ||
git push origin --tags | ||
- name: 🏗 Build | ||
run: pnpm build | ||
|
||
|
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
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
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