Skip to content

Commit 0c6501c

Browse files
authored
fix: fix syntax errors in npm publish job in workflow
1 parent 0573e26 commit 0c6501c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/npm-publish.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: npm publish
66
on:
77
release:
88
types: [published]
9-
109
jobs:
1110
build:
1211
runs-on: ubuntu-latest
@@ -17,22 +16,23 @@ jobs:
1716
node-version: 22
1817
- run: npm ci
1918
- run: npm test
20-
- name: Publish packages
19+
npm-publish:
2120
runs-on: ubuntu-latest
2221
needs: build
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v4
25-
with:
26-
node-version: 22
27-
registry-url: https://registry.npmjs.org/
28-
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
31-
cd "$package_dir"
32-
echo "Publishing package in $package_dir"
33-
npm publish --access public # Adjust --access as needed
34-
cd - # Go back to the root directory
35-
fi
36-
done
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 22
27+
registry-url: https://registry.npmjs.org/
28+
- 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 \
31+
cd "$package_dir" \
32+
echo "Publishing package in $package_dir" \
33+
npm publish --access public # Adjust --access as needed \
34+
cd - # Go back to the root directory \
35+
fi \
36+
done \
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)