@@ -35,7 +35,11 @@ inputs:
3535 upload_yarn_lock :
3636 description : " uploads the node-yarn-lock artifact"
3737 required : false
38- default : true
38+ default : false # false as it is broken right now when actions run in parallel: the artifact name must be unique (so we have to pass the branch or so)
39+ upload_bundle :
40+ description : " uploads the bundle artifact"
41+ required : false
42+ default : false # false as it is broken right now when actions run in parallel: the artifact name must be unique (so we have to pass the branch or so)
3943 run_node_lint :
4044 default : true
4145 required : false
8791 steps :
8892 # Node
8993 - name : Set up node version
90- uses : actions/setup-node@v3
94+ uses : actions/setup-node@v4
9195 if : inputs.enable_node == 'true'
9296 with :
9397 node-version : ${{ inputs.node_version }}
@@ -129,14 +133,14 @@ runs:
129133 env :
130134 GITHUB_TOKEN : ${{ inputs.github_ro_token }}
131135 shell : bash
132- - uses : actions/download-artifact@v3
136+ - uses : actions/download-artifact@v4
133137 # TODO: Remove the variable whenever we can ensure that build-node was called before
134138 if : inputs.enable_node == 'true' && inputs.download_yarn_lock == 'true'
135139 with :
136140 name : node-yarn-lock
137141 # Enable yarn download cache, @see https://github.com/actions/cache/tree/main/save#always-save-cache and https://github.com/actions/setup-node/issues/325
138142 - name : Restore yarn cache
139- uses : actions/cache/restore@v3
143+ uses : actions/cache/restore@v4
140144 if : inputs.enable_node == 'true' && inputs.enable_node_cache == 'true'
141145 with :
142146 # This path is the global yarn cache, because for some reason the local .yarn/cache is not used. Maybe we need to set the cacheFolder, enableGlobalCache, ... options differently? @see https://yarnpkg.com/configuration/yarnrc#cacheFolder
@@ -234,26 +238,26 @@ runs:
234238 RUN_PYTHON_BUILD : ${{ inputs.run_python_build }}
235239 # Node
236240 - name : Save yarn cache
237- uses : actions/cache/save@v3
241+ uses : actions/cache/save@v4
238242 if : inputs.enable_node == 'true' && steps.build.outcome == 'success' && inputs.enable_node_cache == 'true'
239243 with :
240244 # This path is the global yarn cache, because for some reason the local .yarn/cache is not used. Maybe we need to set the cacheFolder, enableGlobalCache, ... options differently? @see https://yarnpkg.com/configuration/yarnrc#cacheFolder
241245 path : ~/.yarn/berry/cache/
242246 key : yarn-download-cache-${{ hashFiles('package.json') }}
243- - uses : actions/upload-artifact@v3
247+ - uses : actions/upload-artifact@v4
244248 if : inputs.enable_node == 'true' && inputs.upload_yarn_lock == 'true'
245249 with :
246250 name : node-yarn-lock
247251 path : ./yarn.lock
248- - uses : actions/upload-artifact@v3
249- if : inputs.enable_node == 'true' && inputs.run_node_bundle == 'true'
252+ - uses : actions/upload-artifact@v4
253+ if : inputs.enable_node == 'true' && inputs.run_node_bundle == 'true' && inputs.upload_bundle == 'true'
250254 with :
251255 name : node-bundle
252256 path : ./bundles
253257 # Chromatic
254258 - name : Run Chromatic
255259 if : inputs.enable_node == 'true' && inputs.chromatic_enable == 'true'
256- uses : chromaui/action@v11.7 .1
260+ uses : chromaui/action@v11.12 .1
257261 with :
258262 exitZeroOnChanges : true
259263 exitOnceUploaded : true
0 commit comments