Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ permissions:
contents: write
pull-requests: write
packages: write
security-events: write # Required for CodeQL to upload results


on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -72,26 +70,31 @@ jobs:
with:
fetch-depth: 0

- name: Create branch
run: |
branch_name="bump/${{ needs.prepare.outputs.next_version }}"
git checkout -b $branch_name

- name: Bump package
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
npm version ${{ inputs.bump_type }} --no-git-tag-version
git add package.json
git commit -m "chore: bump version to ${{ needs.prepare.outputs.next_version }}"
git push origin $branch_name

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
upload: true

- name: Push changes
run: git push
title: "chore: bump version to ${{ needs.prepare.outputs.next_version }}"
body: |
Automated version bump to ${{ needs.prepare.outputs.next_version }}

This PR was automatically created by the version bump workflow.
branch: bump/${{ needs.prepare.outputs.next_version }}
base: main
labels: bump

release-draft:
needs: [prepare, bump-package]
Expand Down
Loading