Skip to content

Commit

Permalink
chore(ci): tweak release workflow (#200)
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Henningsen <[email protected]>
  • Loading branch information
nirinchev and addaleax authored Nov 20, 2024
1 parent 8892cc8 commit 488c117
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes
labels:
- breaking
- title: Features
labels:
- feature
- title: Fixes
labels:
- fix
- title: Other Changes
labels:
- '*'
10 changes: 10 additions & 0 deletions .github/workflows/assign-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
pull_request_target:
types: [opened, edited]

name: conventional-release-labels
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@886f696738527c7be444262c327c89436dfb95a8 # 1.3.1
5 changes: 3 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5
with:
branch: release/${{ steps.version.outputs.new-version }}
title: Prepare for ${{ steps.version.outputs.new-version }}
title: 'chore: bump version to ${{ steps.version.outputs.new-version }}'
draft: false
body: An automated PR for next release.
commit-message: Prepare for ${{ steps.version.outputs.new-version }}
commit-message: Bump package.json version to ${{ steps.version.outputs.new-version }}
labels: ignore-for-release
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
publish:
name: Publish Release
runs-on: ubuntu-latest
environment: Production
environment:
name: Production
url: https://www.npmjs.com/package/@mongodb-js/oidc-plugin/v/${{ steps.get-version.outputs.package_version }}
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 488c117

Please sign in to comment.