39
39
- name : Setup Node
40
40
uses : actions/setup-node@v4
41
41
with :
42
- node-version : 20
42
+ node-version : 22
43
43
- name : NPM Clean Install
44
44
# https://docs.npmjs.com/cli/v10/commands/npm-ci
45
45
run : npm ci
@@ -100,7 +100,7 @@ jobs:
100
100
aws lambda publish-layer-version \
101
101
--layer-name ${{ env.LAYER_NAME }} \
102
102
--content S3Bucket=${{ env.BUCKET_NAME }},S3Key=layer.zip \
103
- --compatible-runtimes nodejs18.x nodejs20.x \
103
+ --compatible-runtimes nodejs18.x nodejs20.x nodejs22.x \
104
104
--compatible-architectures "arm64" "x86_64" \
105
105
--license-info "Apache-2.0" \
106
106
--description "AWS Distro of OpenTelemetry Lambda Layer for NodeJs Runtime" \
@@ -186,16 +186,6 @@ jobs:
186
186
with :
187
187
name : layer.tf
188
188
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
199
189
create-release :
200
190
runs-on : ubuntu-latest
201
191
needs : generate-release-note
@@ -207,23 +197,12 @@ jobs:
207
197
echo "COMMIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
208
198
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)
209
199
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 }}
220
200
- name : Create Release
221
201
id : create_release
222
202
uses : actions/create-release@v1
223
203
env :
224
204
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
225
205
with :
226
- tag_name : ${{ env.TAG_NAME }}
227
206
release_name : " Release AWSOpenTelemetryDistroPython Lambda Layer"
228
207
body_path : lambda-layer/terraform/lambda/layer.tf
229
208
draft : true
0 commit comments