File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ name: npm publish
66on :
77 release :
88 types : [published]
9-
109jobs :
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 }}
You can’t perform that action at this time.
0 commit comments