Skip to content

Commit

Permalink
Update release stats for newer pnpm version (#44828)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Jan 12, 2023
1 parent a0b45c3 commit f85340f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/next-stats-action/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
logger(`Running initial build for ${dir}`)
if (!actionInfo.skipClone) {
const usePnpm = await fs.pathExists(path.join(dir, 'pnpm-lock.yaml'))

let buildCommand = `cd ${dir}${
!statsConfig.skipInitialInstall
? usePnpm
? ' && pnpm install && pnpm run build'
? // --no-frozen-lockfile is used here to tolerate lockfile
// changes from merging latest changes
` && pnpm install --no-frozen-lockfile && pnpm run build`
: ' && yarn install --network-timeout 1000000'
: ''
}`
Expand Down

0 comments on commit f85340f

Please sign in to comment.