File tree Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change 1
- name : 🚀 Release (experimental)
1
+ name : 🧪 Experimental Release
2
+
2
3
on :
3
- push :
4
- tags :
5
- - " v0.0.0-experimental*"
4
+ workflow_dispatch :
5
+ inputs :
6
+ branch :
7
+ required : true
6
8
7
9
concurrency : ${{ github.workflow }}-${{ github.ref }}
8
10
9
11
env :
10
12
CI : true
11
13
12
14
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'
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : ⬇️ Checkout repo
21
21
uses : actions/checkout@v4
22
22
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 }}
23
26
fetch-depth : 0
24
27
25
28
- name : 📦 Setup pnpm
@@ -28,12 +31,22 @@ jobs:
28
31
- name : ⎔ Setup node
29
32
uses : actions/setup-node@v4
30
33
with :
31
- cache : pnpm
32
34
node-version-file : " .nvmrc"
35
+ cache : " pnpm"
33
36
34
37
- name : 📥 Install deps
35
38
run : pnpm install --frozen-lockfile
36
39
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
+
37
50
- name : 🏗 Build
38
51
run : pnpm build
39
52
You can’t perform that action at this time.
0 commit comments