Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): tweak release workflow #200

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
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
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