From 2016aed9ef4a64539bd3b8725f061c35ea0f47b4 Mon Sep 17 00:00:00 2001 From: Marek Fedorovic Date: Wed, 18 Oct 2023 11:53:45 +1100 Subject: [PATCH] feat: Simulate failure and try uninstall step --- .github/workflows/npm_publish_light.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm_publish_light.yml b/.github/workflows/npm_publish_light.yml index 8a94e8c3..6305cbf1 100644 --- a/.github/workflows/npm_publish_light.yml +++ b/.github/workflows/npm_publish_light.yml @@ -12,6 +12,7 @@ on: env: SDK_JS_PACKAGE_NAME: "@kindredgroup/cohort_sdk_js" SDK_CLIENT_PACKAGE_NAME: "@kindredgroup/cohort_sdk_client" + REGISTRY: "https://npm.pkg.github.com" jobs: npm: strategy: @@ -130,7 +131,7 @@ jobs: npm version echo "Unpublishing faulty version" echo "D: npm unpublish $SDK_CLIENT_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION" - npm unpublish "$SDK_CLIENT_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION" + npm unpublish "$SDK_CLIENT_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION" --registry $REGISTRY cd ${{ matrix.settings.dirSdkJs }} pwd ls -l @@ -138,7 +139,7 @@ jobs: npm version echo "Unpublishing faulty version" echo "D: npm unpublish $SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION" - npm unpublish "$SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION" + npm unpublish "$SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION" --registry $REGISTRY - name: Build ${{ matrix.settings.dirCohortReplicator }} env: @@ -170,7 +171,7 @@ jobs: npm version echo "Unpublishing faulty version" echo "D: npm unpublish $SDK_CLIENT_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION" - npm unpublish "$SDK_CLIENT_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION" + npm unpublish "$SDK_CLIENT_PACKAGE_NAME@$SDK_CLIENT_PACKAGE_VERSION" --registry $REGISTRY cd ${{ matrix.settings.dirSdkJs }} pwd ls -l @@ -178,4 +179,4 @@ jobs: npm version echo "Unpublishing faulty version" echo "D: npm unpublish $SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION" - npm unpublish "$SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION" \ No newline at end of file + npm unpublish "$SDK_JS_PACKAGE_NAME@$SDK_JS_PACKAGE_VERSION" --registry $REGISTRY \ No newline at end of file