Skip to content

Commit

Permalink
feat: Simulate failure and try uninstall step
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarek-kindred committed Oct 18, 2023
1 parent c3a5334 commit 6355465
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm_publish_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
echo "Current version is"
npm version
echo "Unpublishing faulty version"
all_versions_sdk_client_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_client/versions")
all_versions_sdk_client_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN" -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_client/versions")
lookup_package_version_id=$(echo $all_versions_sdk_client_js | yq '.[] | select(.name=="$SDK_JS_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION") | .id')
if [ "$lookup_package_version_id" == "" ];
then
Expand All @@ -151,7 +151,7 @@ jobs:
echo "Current version is"
npm version
echo "Unpublishing faulty version"
all_versions_sdk_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_js/versions")
all_versions_sdk_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN" -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_js/versions")
lookup_package_version_id=$(echo $all_versions_sdk_js | yq '.[] | select(.name=="$SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION") | .id')
if [ "$lookup_package_version_id" == "" ];
then
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
echo "Current version is"
npm version
echo "Unpublishing faulty version"
all_versions_sdk_client_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_client/versions")
all_versions_sdk_client_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN" -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_client/versions")
lookup_package_version_id=$(echo $all_versions_sdk_client_js | yq '.[] | select(.name=="$SDK_JS_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION") | .id')
if [ "$lookup_package_version_id" == "" ];
then
Expand All @@ -213,7 +213,7 @@ jobs:
echo "Current version is"
npm version
echo "Unpublishing faulty version"
all_versions_sdk_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_js/versions")
all_versions_sdk_js=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $NODE_AUTH_TOKEN" -H "X-GitHub-Api-Version: $API_VERSION" "$API_URL/cohort_sdk_js/versions")
lookup_package_version_id=$(echo $all_versions_sdk_js | yq '.[] | select(.name=="$SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION") | .id')
if [ "$lookup_package_version_id" == "" ];
then
Expand Down

0 comments on commit 6355465

Please sign in to comment.