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="avocado-toast"
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,6 +117,7 @@ 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
115122
116123 - name : Publish to npm
0 commit comments