fix: capture shell PATH for CLI spawn on macOS (#4579) (#4586) #4329
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Changeset Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| REPO_PATH: ${{ github.repository }} | |
| GIT_REF: main | |
| NODE_VERSION: 20.19.2 | |
| PNPM_VERSION: 10.8.1 | |
| jobs: | |
| # Job 1: Create version bump PR when changesets are merged to main | |
| changeset-pr-version-bump: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Git Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ env.GIT_REF }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: "pnpm" | |
| - name: Install Dependencies | |
| run: pnpm install | |
| # Create version bump PR using changesets/action | |
| - name: Changeset Pull Request | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| commit: "changeset version bump" | |
| title: "Changeset version bump" | |
| version: pnpm changeset:version # This performs the changeset version bump | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |