Skip to content

Commit 837378c

Browse files
committed
fix missing version in s3 copy script
1 parent 9e7e383 commit 837378c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/sync-package.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
role-to-assume: "${{ secrets.ACTIONS_SYNC_ROLE_NAME }}"
4343
role-session-name: samplerolesession
4444
aws-region: ${{ env.AWS_REGION }}
45+
- name: get-npm-version
46+
id: package-version
47+
uses: martinbeentjes/npm-get-version-action@v1.3.1
48+
with:
49+
path: packages/${{ inputs.package_name }}
4550
- run: npm ci
4651
- run: npm run build
4752
- name: Navigate to package and pack
@@ -50,8 +55,8 @@ jobs:
5055
# Upload a file to AWS s3
5156
- name: Copy tgz build file to s3
5257
run: |
53-
aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}.tgz \
54-
s3://${{ secrets.S3_BUCKET_NAME }}/
58+
aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz \
59+
s3://${{ secrets.S3_BUCKET_NAME }}/${{ inputs.package_name }}
5560
- name: commit to Gitfarm
5661
run: |
5762
aws lambda invoke \

0 commit comments

Comments
 (0)