File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
actions/npmInstallWithRetries Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 77runs :
88 using : composite
99 steps :
10- - name : npm install
10+ - name : timeout config
11+ run : npm config set fetch-timeout 600000
12+ shell : bash
13+ - name : npm ci
1114 uses : salesforcecli/github-workflows/.github/actions/retry@main
1215 with :
13- command : npm install --timeout 600000 ${{ inputs.ignore-scripts == 'true' && '--ignore-scripts' || '' }}
16+ command : npm ci --no-audit --no-fund ${{ inputs.ignore-scripts == 'true' && '--ignore-scripts' || '' }}
Original file line number Diff line number Diff line change 6161 required : false
6262 default : true
6363 type : boolean
64+ packagePath :
65+ description : relative path to the package to publish, should start with a ".". Defaults to the root of the repository. Useful for monorepos.
66+ required : false
67+ type : string
68+ default : .
69+
6470jobs :
6571 check-publish :
6672 outputs :
96102 fi
97103 env :
98104 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
105+ working-directory : ${{ inputs.packagePath }}
99106
100107 - run : echo "[INFO] Is package published:\ $STEPS_IS_PUBLISHED_PUBLISHED"
101108 env :
@@ -279,6 +286,7 @@ jobs:
279286 ${{ inputs.dryrun && '--dryrun' || '' }} \
280287 ${{ inputs.prerelease && format('--prerelease {0}', github.ref_name) || '' }} \
281288 ${{ inputs.sign && '--sign' || '' }}
289+ working-directory : ${{ inputs.packagePath }}
282290 env :
283291 NPM_TOKEN : ${{secrets.NPM_TOKEN}}
284292 AWS_ACCESS_KEY_ID : ${{secrets.AWS_ACCESS_KEY_ID}}
You can’t perform that action at this time.
0 commit comments