Skip to content

Commit 17a1213

Browse files
authored
ci: update tag.yml
1 parent 2f4e530 commit 17a1213

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/tag.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,19 @@ jobs:
2828
VERSION=$(jq -r .version ./src/Packages/Passport/package.json)
2929
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
3030
31+
- name: Check TS SDK version exists in index.html
32+
id: check_ts_sdk_version
33+
run: |
34+
version=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./src/Packages/Passport/Runtime/Resources/index.html | head -n 1)
35+
36+
if [[ -z "$version" ]]; then
37+
echo "Error: TS SDK version not found in index.html" >&2
38+
exit 1
39+
fi
40+
3141
- name: Create Tag
3242
uses: negz/create-tag@v1
3343
with:
3444
version: "v${{ env.VERSION }}"
3545
message: "Version ${{ env.VERSION }}"
36-
token: ${{ secrets.GITHUB_TOKEN }}
46+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)