Skip to content

Commit eca6c0c

Browse files
committed
Update experimental release to be a workflow_dispatch
1 parent d2c4a12 commit eca6c0c

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.github/workflows/release-experimental.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
name: 🚀 Release (experimental)
1+
name: 🧪 Experimental Release
2+
23
on:
3-
push:
4-
tags:
5-
- "v0.0.0-experimental*"
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
required: true
68

79
concurrency: ${{ github.workflow }}-${{ github.ref }}
810

911
env:
1012
CI: true
1113

1214
jobs:
13-
release:
14-
name: 🧑‍🔬 Experimental Release
15-
if: |
16-
github.repository == 'remix-run/react-router' &&
17-
contains(github.ref, 'experimental')
15+
experimental:
16+
name: 🧪 Experimental Release
17+
if: github.repository == 'remix-run/react-router'
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: ⬇️ Checkout repo
2121
uses: actions/checkout@v4
2222
with:
23+
ref: ${{ github.event.inputs.branch }}
24+
# checkout using a custom token so that we can push later on
25+
token: ${{ secrets.GITHUB_TOKEN }}
2326
fetch-depth: 0
2427

2528
- name: 📦 Setup pnpm
@@ -28,12 +31,22 @@ jobs:
2831
- name: ⎔ Setup node
2932
uses: actions/setup-node@v4
3033
with:
31-
cache: pnpm
3234
node-version-file: ".nvmrc"
35+
cache: "pnpm"
3336

3437
- name: 📥 Install deps
3538
run: pnpm install --frozen-lockfile
3639

40+
- name: ⤴️ Update version
41+
run: |
42+
git config --local user.email "[email protected]"
43+
git config --local user.name "Remix Run Bot"
44+
SHORT_SHA=$(git rev-parse --short HEAD)
45+
NEXT_VERSION=0.0.0-experimental-${SHORT_SHA}
46+
git checkout -b experimental/${NEXT_VERSION}
47+
pnpm run version ${NEXT_VERSION}
48+
git push origin --tags
49+
3750
- name: 🏗 Build
3851
run: pnpm build
3952

0 commit comments

Comments
 (0)