3939 - name : Setup Node
4040 uses : actions/setup-node@v4
4141 with :
42- node-version : 20
42+ node-version : 22
4343 - name : NPM Clean Install
4444 # https://docs.npmjs.com/cli/v10/commands/npm-ci
4545 run : npm ci
@@ -100,7 +100,7 @@ jobs:
100100 aws lambda publish-layer-version \
101101 --layer-name ${{ env.LAYER_NAME }} \
102102 --content S3Bucket=${{ env.BUCKET_NAME }},S3Key=layer.zip \
103- --compatible-runtimes nodejs18.x nodejs20.x \
103+ --compatible-runtimes nodejs18.x nodejs20.x nodejs22.x \
104104 --compatible-architectures "arm64" "x86_64" \
105105 --license-info "Apache-2.0" \
106106 --description "AWS Distro of OpenTelemetry Lambda Layer for NodeJs Runtime" \
@@ -186,16 +186,6 @@ jobs:
186186 with :
187187 name : layer.tf
188188 path : layer.tf
189- - name : Commit changes
190- env :
191- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
192- run : |
193- git config user.name "github-actions[bot]"
194- git config user.email "github-actions[bot]@users.noreply.github.com"
195- mv layer.tf lambda-layer/terraform/lambda/
196- git add lambda-layer/terraform/lambda/layer.tf
197- git commit -m "Update Lambda layer ARNs for releasing" || echo "No changes to commit"
198- git push
199189 create-release :
200190 runs-on : ubuntu-latest
201191 needs : generate-release-note
@@ -207,23 +197,12 @@ jobs:
207197 echo "COMMIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
208198 SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)
209199 echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
210- - name : Create Tag
211- run : |
212- git config user.name "github-actions[bot]"
213- git config user.email "github-actions[bot]@users.noreply.github.com"
214- TAG_NAME="lambda-${SHORT_SHA}"
215- git tag -a "$TAG_NAME" -m "Release Lambda layer based on commit $TAG_NAME"
216- git push origin "$TAG_NAME"
217- echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
218- env :
219- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
220200 - name : Create Release
221201 id : create_release
222202 uses : actions/create-release@v1
223203 env :
224204 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
225205 with :
226- tag_name : ${{ env.TAG_NAME }}
227206 release_name : " Release AWSOpenTelemetryDistroPython Lambda Layer"
228207 body_path : lambda-layer/terraform/lambda/layer.tf
229208 draft : true
0 commit comments