Version Packages #6
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: Version Packages | |
| on: | |
| workflow_dispatch: {} # run manually from GitHub UI | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # needed so changesets can read history | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.15.0 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --link-workspace-packages=false | |
| - name: Create version PR | |
| uses: changesets/action@v1 | |
| with: | |
| version: pnpm run version-packages | |
| commit: 'chore(release): bump versions' | |
| title: 'chore(release): version packages' | |
| branch: 'release/version-packages' | |
| baseBranch: main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PAT }} |