Skip to content

Commit f453753

Browse files
authored
Use local package.json version instead of registry version (#236)
1 parent ca0ffab commit f453753

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/sdk-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265
env:
266266
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
267267
run: |
268-
VERSION=$(npm view . version)
268+
VERSION=$(npm pkg get version | tr -d '"')
269269
echo "Detected version: $VERSION"
270270
271271
if [[ "$VERSION" == *"-"* ]]; then
@@ -370,7 +370,7 @@ jobs:
370370
- env:
371371
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
372372
run: |
373-
VERSION=$(npm view . version)
373+
VERSION=$(npm pkg get version | tr -d '"')
374374
echo "Detected version: $VERSION"
375375
376376
if [[ "$VERSION" == *"-"* ]]; then

.github/workflows/workflow-executor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ jobs:
394394
env:
395395
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
396396
run: |
397-
VERSION=$(npm view . version)
397+
VERSION=$(npm pkg get version | tr -d '"')
398398
echo "Detected version: $VERSION"
399399
400400
if [[ "$VERSION" == *"-"* ]]; then

0 commit comments

Comments
 (0)