Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
haoliangyu committed Aug 3, 2023
1 parent 0521270 commit 80c7d4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
# if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -48,8 +48,10 @@ jobs:
role-to-assume: ${{ secrets.AWS_DEV_TERRAFORM_ROLE_ARN }}
- name: Publish
run: |
# list all packages in the /packages directory
package_dirs=( $(ls) )
# for each package, run the "npm pack" command and upload the .tgz package to S3
for dir in "${package_dirs[@]}"; do
package_name="$(jq '.name' $dir/package.json -r)"
s3_key="$package_name/PR-${{ github.event.number }}/${{ github.event.pull_request.head.sha }}.tgz"
Expand Down

0 comments on commit 80c7d4e

Please sign in to comment.