Skip to content

Commit d8f265b

Browse files
committed
fix
1 parent a73c340 commit d8f265b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: |
8282
# Double-check package name one more time before publishing
8383
CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name")
84-
OFFICIAL_PACKAGE=$(node -p "require('./package.json.bak').name")
84+
OFFICIAL_PACKAGE=$(jq -r '.name' package.json.bak)
8585
8686
echo "About to publish: $CURRENT_PACKAGE_NAME"
8787

.github/workflows/preview-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
run: |
8888
# Double-check package name one more time before publishing
8989
CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name")
90-
OFFICIAL_PACKAGE=$(node -p "require('./package.json.bak').name")
90+
OFFICIAL_PACKAGE=$(jq -r '.name' package.json.bak)
9191
9292
echo "About to publish: $CURRENT_PACKAGE_NAME"
9393

0 commit comments

Comments
 (0)