Skip to content

Commit

Permalink
chore: update release-pr action
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoortheen committed Jan 24, 2025
1 parent c090578 commit 561cbd3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
name: VSCode CI
name: Release PR

on:
push:
branches: [main]
branches:
- main

jobs:
create_release_pr:
version-bump:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bunx standard-version
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "chore(release): update version and changelog"
branch: release-branch
title: "Release PR"
body: "This PR contains the changes from running bunx standard-version."
labels: release
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- uses: oven-sh/setup-bun@v2
- run: bunx standard-version
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore(release): bump version"
title: "Bump Version"
body: "Automated version bump using standard-version"
branch: version-bump
delete-branch: true
base: main
4 changes: 1 addition & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: VSCode CI
name: Tests

on:
push:
branches: [master, main]
tags:
- "v*"
pull_request:
branches: [master, main]

Expand Down

0 comments on commit 561cbd3

Please sign in to comment.