Skip to content

Commit

Permalink
fix: Typo in actions/publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarek-kindred committed Jul 15, 2024
1 parent 3145a30 commit 76e9ab0
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 47 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ jobs:
rm package-lock.json || true
echo "D: npm install $SDK_JS_PACKAGE_NAME@$VERSION_NAME --foreground-scripts"
npm install $SDK_JS_PACKAGE_NAME@$VERSION_NAME --foreground-scripts
npm build
ls -lah node_modules
echo ""
echo "listing node_modules/@kindredgroup"
ls -lah node_modules/@kindredgroup || true
echo ""
npm run build
npm version
pwd
ls -l
Expand Down
1 change: 1 addition & 0 deletions cohort_sdk_client/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@kindredgroup:registry=https://npm.pkg.github.com
74 changes: 37 additions & 37 deletions cohort_sdk_client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cohort_sdk_client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "npx tsc -d"
},
"dependencies": {
"@kindredgroup/cohort_sdk_js": "0.2.12",
"@kindredgroup/cohort_sdk_js": "^0.2.13",
"@types/pg": "^8.10.2",
"ts-node": "^10.9.1",
"winston": "^3.10.0"
Expand Down
16 changes: 8 additions & 8 deletions packages/cohort_sdk_js/scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ echo "D: lenMinusOne=$lenMinusOne, lenMinusTwo=$lenMinusTwo, lenMinusThree=$lenM
lastPathToken="${pathTokens[lenMinusFour]}/${pathTokens[lenMinusThree]}/${pathTokens[lenMinusTwo]}"/"${pathTokens[lenMinusOne]}"
echo "D: lastPathToken=$lastPathToken"

if [ "$COHORT_SDK_CLIENT_DEV_MODE" == "true" ]; then
echo "Post install script of 'cohort_sdk_js' is running as transitional dependency. Enforced by COHORT_SDK_CLIENT_DEV_MODE=${COHORT_SDK_CLIENT_DEV_MODE}"
else
if [ "$lastPathToken" == "cohort_sdk_client/node_modules/@kindredgroup/cohort_sdk_js" ]; then
echo "Post install script of 'cohort_sdk_js' is designed to be executed when module is installed as transitional dependency. Currently, 'npm install' is running as part of installing 'cohort_sdk_client'. Postinstall script is skipped."
exit 0
fi
fi
# if [ "$COHORT_SDK_CLIENT_DEV_MODE" == "true" ]; then
# echo "Post install script of 'cohort_sdk_js' is running as transitional dependency. Enforced by COHORT_SDK_CLIENT_DEV_MODE=${COHORT_SDK_CLIENT_DEV_MODE}"
# else
# if [ "$lastPathToken" == "cohort_sdk_client/node_modules/@kindredgroup/cohort_sdk_js" ]; then
# echo "Post install script of 'cohort_sdk_js' is designed to be executed when module is installed as transitional dependency. Currently, 'npm install' is running as part of installing 'cohort_sdk_client'. Postinstall script is skipped."
# exit 0
# fi
# fi

echo "Post install. Current directory is: $CURRENT_DIR"
echo "The content is: "
Expand Down

0 comments on commit 76e9ab0

Please sign in to comment.