Skip to content

Commit 34a6ae1

Browse files
authored
Update npm-publish.yml
1 parent 49984cf commit 34a6ae1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ jobs:
2626
node-version: 22
2727
registry-url: https://registry.npmjs.org/
2828
- run: |
29-
for package_dir in packages/*; do \
30-
if [[ -d "$package_dir" && { "$package_dir" == "aws-durable-execution-sdk-js-testing" || "$package_dir" == "aws-durable-execution-sdk-js" ]]; then \
29+
for package_dir in packages/*; \
30+
do \
31+
if [ -d "$package_dir" ] && [[ "$package_dir" == "packages/aws-durable-execution-sdk-js-testing" || "$package_dir" == "packages/aws-durable-execution-sdk-js" ]]; then \
3132
cd "$package_dir" \
3233
echo "Publishing package in $package_dir" \
3334
npm publish --access public # Adjust --access as needed \
34-
cd - # Go back to the root directory \
35-
fi \
36-
done \
35+
cd ../.. # Go back to the root directory \
36+
fi \
37+
done
3738
env:
3839
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)