Skip to content

Commit 9b16785

Browse files
committed
fix: update lifecycle
1 parent 7bd7d2f commit 9b16785

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.github/workflows/update-changesets.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ name: update-changesets
22

33
env:
44
WORKFLOW_FILE: update-changesets.yml
5-
RSS_URLS: |
6-
https://unity.com/releases/editor/lts-releases.xml
7-
https://unity.com/releases/editor/tech-and-preview-releases.xml
8-
https://unity.com/releases/editor/beta-releases.xml
9-
https://unity.com/releases/editor/alpha-releases.xml
10-
REGEX_UNITY_VERSION: '[0-9]{4,}\.[0-9]{1,}\.[0-9]{1,}(a|b|f|rc|p)[0-9]{1,}'
115

126
on:
137
issue_comment:
@@ -28,6 +22,7 @@ jobs:
2822
with:
2923
fetch-depth: 0
3024
ref: gh_pages
25+
3126
- name: 🔍 Check other workflows
3227
run: |
3328
# Get in-progress or queued workflows.
@@ -38,7 +33,7 @@ jobs:
3833
[ "$RESULT" = "false" ] && echo "::error::Other '${{ env.WORKFLOW_FILE }}' workflows are in progress." && exit 1 || :
3934
4035
- name: 🛠️ Update changesets file
41-
run: npx unity-changeset list --all > db
36+
run: npx unity-changeset list --all --all-lifecycles > db
4237

4338
- name: Commit & Push changes
4439
uses: actions-js/push@master

.vscode/launch.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"request": "launch",
28-
"name": "list --versions",
28+
"name": "list --versions --all --all-lifecycles",
2929
"type": "node",
3030
"program": "${workspaceFolder}/src/cli.ts",
3131
"cwd": "${workspaceFolder}",
@@ -39,7 +39,9 @@
3939
],
4040
"args": [
4141
"list",
42-
"--versions"
42+
"--versions",
43+
"--all",
44+
"--all-lifecycles"
4345
],
4446
"attachSimplePort": 9229
4547
},

src/unityChangeset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const REGEXP_HUB_LINK = /^unityhub:\/\/(\d{4}\.\d+\.\d+(a|b|f)\d+)\/(\w{12})$/;
1+
const REGEXP_HUB_LINK = /^unityhub:\/\/(\d{4}\.\d+\.\d+(a|b|f|p)\d+)\/(\w{12})$/;
22
const REGEXP_UNITY = /^(\d+)\.(\d+)\.(\d+)([a-zA-Z]+)(\d+)/;
33
const REGEXP_UNITY_NUM = /^(\d+)\.?(\d+)?\.?(\d+)?([a-zA-Z]+)?(\d+)?/;
44

0 commit comments

Comments
 (0)