Skip to content

Commit 6cc5f8e

Browse files
committed
Tighten release workflow shell checks
1 parent 1becf0b commit 6cc5f8e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
npm_exit=0
164164
npm --silent view "${PACKAGE_NAME}@${RELEASE_VERSION}" version --json >"$NPM_VIEW_OUTPUT" 2>&1 || npm_exit=$?
165165
166-
if [[ "$npm_exit" == "0" ]]; then
166+
if [[ "$npm_exit" -eq 0 ]]; then
167167
echo "${PACKAGE_NAME}@${RELEASE_VERSION} is already published." >&2
168168
cat "$NPM_VIEW_OUTPUT" >&2
169169
exit 1
@@ -209,7 +209,7 @@ jobs:
209209
210210
# No npm auth token secret is configured; npm uses GitHub OIDC trusted publishing.
211211
# Keep the package prepublishOnly build as a publish-time artifact safety net.
212-
npm publish --provenance --access public --tag "$NPM_TAG"
212+
npm publish --provenance --tag "$NPM_TAG"
213213
214214
- name: Create local release tag
215215
env:
@@ -252,7 +252,7 @@ jobs:
252252
break
253253
fi
254254
255-
if [[ "$attempt" == "12" ]]; then
255+
if [[ "$attempt" -eq 12 ]]; then
256256
echo "Published package ${PACKAGE_NAME}@${RELEASE_VERSION} was not visible after retries." >&2
257257
exit 1
258258
fi

0 commit comments

Comments
 (0)