Skip to content

Commit

Permalink
ci: update tag.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 authored Aug 1, 2024
1 parent 2f4e530 commit 17a1213
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,19 @@ jobs:
VERSION=$(jq -r .version ./src/Packages/Passport/package.json)
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Check TS SDK version exists in index.html
id: check_ts_sdk_version
run: |
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)
if [[ -z "$version" ]]; then
echo "Error: TS SDK version not found in index.html" >&2
exit 1
fi
- name: Create Tag
uses: negz/create-tag@v1
with:
version: "v${{ env.VERSION }}"
message: "Version ${{ env.VERSION }}"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 17a1213

Please sign in to comment.