File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 test_node :
2929 name : Test Node
3030 uses : ./.github/workflows/test_node.yml
31+ with :
32+ triggered-by-release : ${{ github.event_name == 'push' && startsWith(github.ref_name, 'release/') }}
3133
3234 test_swift :
3335 name : Test Swift
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Test Node
22
33on :
44 workflow_call :
5+ inputs :
6+ triggered-by-release :
7+ type : boolean
8+ description : Whether the workflow was triggered by a release
9+ default : false
510 outputs :
611 matrix-result :
712 description : ' Matrix job result'
4651 # We need to skip the fallback download because downloading will fail on release branches because the new version isn't available yet.
4752 # We have to use npm here because yarn fails on the non-existing existing optionalDependency version:
4853 # https://github.com/yarnpkg/berry/issues/2425#issuecomment-1627807326
49- - run : SENTRYCLI_SKIP_DOWNLOAD=1 npm ci
54+ - env :
55+ SENTRYCLI_SKIP_DOWNLOAD : 1
56+ NPM_FLAGS : ${{ inputs.triggered-by-release && '--omit=optional --ignore-scripts' || '' }}
57+ run : npm ci $NPM_FLAGS
5058
5159 # older node versions need an older nft
5260 - run : SENTRYCLI_SKIP_DOWNLOAD=1 npm install @vercel/nft@0.22.1
Original file line number Diff line number Diff line change 3535# Update the optional deps in the main cli npm package
3636# Requires jq to be installed - should be installed ootb on github runners
3737jq ' .optionalDependencies |= map_values("' " ${TARGET} " ' ")' $SCRIPT_DIR /../package.json > package.json.tmp && mv package.json.tmp $SCRIPT_DIR /../package.json
38+
39+ # Update the dependencies in the package-lock.json, too, skipping the download
40+ # because the new version is not published yet.
41+ SENTRYCLI_SKIP_DOWNLOAD=1 npm install --omit=optional --package-lock-only --ignore-scripts
You can’t perform that action at this time.
0 commit comments