@@ -31,22 +31,17 @@ jobs:
3131 steps :
3232 - name : Git clone the repository
3333 uses : actions/checkout@v5
34- - name : Use Node.js ${{ matrix.node-version }}
34+ - name : Use Node.js 24.x
3535 uses : actions/setup-node@v4
3636 with :
37- node-version : ${{ matrix.node-version }}
37+ node-version : 24.x
3838 cache : " npm"
3939 - name : configure aws credentials
4040 uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
4141 with :
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 }}
5045 - run : npm ci
5146 - run : npm run build
5247 - name : Navigate to package and pack
@@ -55,13 +50,13 @@ jobs:
5550 # Upload a file to AWS s3
5651 - name : Copy tgz build file to s3
5752 run : |
58- aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }} .tgz \
53+ aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}.tgz \
5954 s3://${{ secrets.S3_BUCKET_NAME }}/
6055 - name : commit to Gitfarm
6156 run : |
6257 aws lambda invoke \
6358 --function-name ${{ secrets.SYNC_LAMBDA_ARN }} \
64- --payload '{"gitFarmRepo":"${{ secrets.GITFARM_LAN_SDK_REPO }}","gitFarmBranch":"${{ secrets.GITFARM_LAN_SDK_BRANCH }}","gitFarmFilepath":"${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}. tgz","s3Bucket":"${{ secrets.S3_BUCKET_NAME }}","s3FilePath":"${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz", "gitHubRepo": "aws-durable-execution-sdk-js", "gitHubCommit":"${{ github.sha }}"}' \
59+ --payload '{"gitFarmRepo":"${{ secrets.GITFARM_LAN_SDK_REPO }}","gitFarmBranch":"${{ secrets.GITFARM_LAN_SDK_BRANCH }}","gitFarmFilepath":"${{ inputs.package_name }}. tgz","s3Bucket":"${{ secrets.S3_BUCKET_NAME }}","s3FilePath":"${{ inputs.package_name }}.tgz", "gitHubRepo": "aws-durable-execution-sdk-js", "gitHubCommit":"${{ github.sha }}"}' \
6560 --cli-binary-format raw-in-base64-out \
6661 output.txt
6762 - name : Check for specific text in a file
0 commit comments