File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 4848 with :
4949 path : " ./node_modules"
5050 key : 16-cache-utils-node-modules-${{ hashFiles('./package-lock.json') }}
51- # Here we assume that there will always be a cache hit because this workflow can be triggered
52- # only after tests have already happened on this same code
51+ - name : Install dependencies
52+ # We can skip the installation if there was a cache hit
53+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
54+ # See https://github.com/npm/cli/issues/4475 to see why --foreground-scripts
55+ run : npm ci --foreground-scripts
5356 - name : Build packages
57+ # If there's a cache hit we still need to manually build the packages
58+ # this would otherwise have been done automatically as a part of the
59+ # post-install npm hook
60+ if : steps.cache-node-modules.outputs.cache-hit == 'true'
5461 run : |
5562 npm run build -w packages/commons
5663 npm run build -w packages/logger & npm run build -w packages/tracer & npm run build -w packages/metrics
Original file line number Diff line number Diff line change 3030 "license" : " MIT" ,
3131 "main" : " ./lib/index.js" ,
3232 "types" : " ./lib/index.d.ts" ,
33- "typedocMain" : " src/index .ts" ,
33+ "typedocMain" : " src/file_that_does_not_exist_so_its_ignored_from_api_docs .ts" ,
3434 "files" : [
3535 " lib"
3636 ],
Original file line number Diff line number Diff line change 3030 "license" : " MIT-0" ,
3131 "main" : " ./lib/index.js" ,
3232 "types" : " ./lib/index.d.ts" ,
33+ "typedocMain" : " src/file_that_does_not_exist_so_its_ignored_from_api_docs.ts" ,
3334 "files" : [
3435 " lib"
3536 ],
5253 " serverless" ,
5354 " nodejs"
5455 ]
55- }
56+ }
You can’t perform that action at this time.
0 commit comments