Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter expansion doesn't appear to work in publish command #444

Open
steveluscher opened this issue Feb 27, 2025 · 0 comments
Open

Parameter expansion doesn't appear to work in publish command #444

steveluscher opened this issue Feb 27, 2025 · 0 comments

Comments

@steveluscher
Copy link

I have the following config:

      - name: Create Changesets Pull Request or Publish to NPM
        id: changesets
        uses: changesets/action@v1
        with:
          publish: pnpm turbo publish-packages --concurrency=${TURBO_CONCURRENCY:-1}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
          PUBLISH_TAG: next

The ${TURBO_CONCURRENCY:-1} parameter expansion does not seem to work. I received the error:

/home/runner/setup-pnpm/node_modules/.bin/pnpm turbo publish-packages --concurrency=${TURBO_CONCURRENCY:-1}
  x Invalid value for `--concurrency` flag. This should be a positive integer
  | greater than or equal to 1: ${TURBO_CONCURRENCY:-1}

I believe this must be because --concurrency was passed the literal value ${TURBO_CONCURRENCY:-1} instead of the result of the parameter expansion (ie. 1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant