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 8cea077 commit 2016aed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/npm_publish_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -130,15 +131,15 @@ 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
echo "Current version is"
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:
Expand Down Expand Up @@ -170,12 +171,12 @@ 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
echo "Current version is"
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

0 comments on commit 2016aed

Please sign in to comment.