Skip to content

Commit 488c117

Browse files
nirinchevaddaleax
andauthored
chore(ci): tweak release workflow (#200)
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 8892cc8 commit 488c117

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

.github/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- octocat
7+
categories:
8+
- title: Breaking Changes
9+
labels:
10+
- breaking
11+
- title: Features
12+
labels:
13+
- feature
14+
- title: Fixes
15+
labels:
16+
- fix
17+
- title: Other Changes
18+
labels:
19+
- '*'

.github/workflows/assign-labels.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
on:
2+
pull_request_target:
3+
types: [opened, edited]
4+
5+
name: conventional-release-labels
6+
jobs:
7+
label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: bcoe/conventional-release-labels@886f696738527c7be444262c327c89436dfb95a8 # 1.3.1

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5
3232
with:
3333
branch: release/${{ steps.version.outputs.new-version }}
34-
title: Prepare for ${{ steps.version.outputs.new-version }}
34+
title: 'chore: bump version to ${{ steps.version.outputs.new-version }}'
3535
draft: false
3636
body: An automated PR for next release.
37-
commit-message: Prepare for ${{ steps.version.outputs.new-version }}
37+
commit-message: Bump package.json version to ${{ steps.version.outputs.new-version }}
38+
labels: ignore-for-release

.github/workflows/publish-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ jobs:
77
publish:
88
name: Publish Release
99
runs-on: ubuntu-latest
10-
environment: Production
10+
environment:
11+
name: Production
12+
url: https://www.npmjs.com/package/@mongodb-js/oidc-plugin/v/${{ steps.get-version.outputs.package_version }}
1113
steps:
1214
- uses: actions/checkout@v4
1315

0 commit comments

Comments
 (0)