88 branches : [ main ]
99 workflow_dispatch :
1010
11+ permissions :
12+ id-token : write
13+ contents : read
14+
1115jobs :
1216 build :
13- runs-on : [self-hosted, project-awsaws-lambda-nodejs-runtime-interface-client]
17+ runs-on : codebuild- project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
1418 timeout-minutes : 15
1519 outputs :
1620 version : ${{ steps.version.outputs.version }}
3034 echo "version=$BASE_VERSION" >> $GITHUB_OUTPUT
3135
3236 - name : Install build dependencies
33- run : yum install -y cmake make gcc-c++
37+ run : |
38+ apt-get update
39+ apt-get install -y cmake make g++
3440
3541 - name : Clean and build
3642 run : |
5763 retention-days : 30
5864
5965 test :
60- runs-on : [self-hosted, project-awsaws-lambda-nodejs-runtime-interface-client]
66+ runs-on : ubuntu-latest
6167 needs : [build]
6268 strategy :
6369 matrix :
7278
7379 publish :
7480 if : startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/fabisev/artifact-publishing'
75- runs-on : [self-hosted, project-awsaws-lambda-nodejs-runtime-interface-client]
81+ runs-on : codebuild- project-awsaws-lambda-nodejs-runtime-interface-client-${{ github.run_id }}-${{ github.run_attempt }}
7682 needs : [build, test]
7783 permissions :
7884 contents : write
@@ -97,11 +103,11 @@ jobs:
97103 - name : Determine version and package name
98104 id : version
99105 run : |
106+ npm pkg set name="icecream-shop"
100107 if [[ "${{ github.ref }}" == refs/heads/fabisev/artifact-publishing ]]; then
101108 PACKAGE_VERSION="${{ needs.build.outputs.version }}-test.$(date +%s)"
102109 echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
103110 echo "is_test=true" >> $GITHUB_OUTPUT
104- npm pkg set name="avocado-toast"
105111 npm version $PACKAGE_VERSION --no-git-tag-version
106112 elif [[ "${{ github.ref }}" == refs/tags/rc-* ]]; then
107113 RC_NUMBER=${GITHUB_REF#refs/tags/rc-}
@@ -111,16 +117,18 @@ jobs:
111117 npm version $PACKAGE_VERSION --no-git-tag-version
112118 else
113119 echo "package_version=${{ needs.build.outputs.version }}" >> $GITHUB_OUTPUT
120+ npm version ${{ needs.build.outputs.version }} --no-git-tag-version
114121 fi
122+ npm pack
115123
116124 - name : Publish to npm
117125 run : |
118126 if [[ "${{ steps.version.outputs.is_test }}" == "true" ]]; then
119- npm publish aws-lambda-ric -*.tgz --tag test
127+ npm publish icecream-shop -*.tgz --tag test
120128 elif [[ "${{ steps.version.outputs.is_rc }}" == "true" ]]; then
121- npm publish aws-lambda-ric -*.tgz --tag rc
129+ npm publish icecream-shop -*.tgz --tag rc
122130 else
123- npm publish aws-lambda-ric -*.tgz
131+ npm publish icecream-shop -*.tgz
124132 fi
125133
126134 - name : Create GitHub Release
0 commit comments