Skip to content

Commit f10d767

Browse files
authored
Update update-embedded-player.yml
update embedded player version auto
1 parent 25daee9 commit f10d767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-embedded-player.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- name: Update @antmedia/web_player
2020
working-directory: ./embedded-player
2121
run: |
22-
OLD_EMBEDDED_PLAYER_VERSION=$(node -p "require('./package.json').dependencies['@antmedia/web_player']")
22+
OLD_EMBEDDED_PLAYER_VERSION=$(node -p "require('./package.json').dependencies['@antmedia/web_player'].replace(/\\^/, '')")
2323
npm install --save @antmedia/web_player@latest || { echo 'npm install failed' ; exit 1; }
24-
NEW_EMBEDDED_PLAYER_VERSION=$(node -p "require('./package.json').dependencies['@antmedia/web_player']")
24+
NEW_EMBEDDED_PLAYER_VERSION=$(node -p "require('./package.json').dependencies['@antmedia/web_player'].replace(/\\^/, '')")
2525
echo "OLD_EMBEDDED_PLAYER_VERSION=$OLD_EMBEDDED_PLAYER_VERSION" >> $GITHUB_ENV
2626
echo "NEW_EMBEDDED_PLAYER_VERSION=$NEW_EMBEDDED_PLAYER_VERSION" >> $GITHUB_ENV
2727

0 commit comments

Comments
 (0)