v3.3.5 #77
Workflow file for this run
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: Auto Version Bump | |
| on: | |
| pull_request: | |
| types: [opened] | |
| jobs: | |
| bump-version: | |
| if: startsWith(github.event.pull_request.title, 'v3.') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Bump version from PR title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| VERSION="$PR_TITLE" | |
| if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| pnpm dlx --package @lerna-lite/cli --package @lerna-lite/version \ | |
| lerna version "$VERSION" --yes --no-push --no-git-tag-version --force-publish | |
| else | |
| echo "PR title is not a valid version." | |
| exit 1 | |
| fi | |
| - name: Generate extension metadata | |
| working-directory: extensions/vscode | |
| run: npm run gen-ext-meta | |
| - name: Commit | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| message: "ci: bump version [skip ci]" | |
| default_author: github_actions |