name: Release Request on: workflow_dispatch: inputs: version: description: "The version to release (e.g., 0.12.0)" required: true jobs: create-pr: runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '22' - name: Bump versions run: | VERSION=${{ github.event.inputs.version }} cd web && npm version $VERSION --no-git-tag-version && cd .. cd docs && npm version $VERSION --no-git-tag-version && cd .. - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: "chore: release v${{ github.event.inputs.version }}" branch: "release/v${{ github.event.inputs.version }}" title: "Release v${{ github.event.inputs.version }}" body: "This PR bumps the version. Merging this will trigger Docker builds and a GitHub Release." base: main