Skip to content

Commit 761ac60

Browse files
Fix changelog and add cargo.lock
1 parent 7269257 commit 761ac60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: orhun/git-cliff-action@v4
5959
with:
6060
config: cliff.toml
61-
args: --verbose
61+
args: --tag ${{ github.event.inputs.version }} --verbose
6262
env:
6363
OUTPUT: CHANGELOG.md
6464
GITHUB_REPO: ${{ github.repository }}
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
git config --global user.name "${{ steps.app-token.outputs.user-name }}"
7070
git config --global user.email "${{ steps.app-token.outputs.user-email }}"
71-
git add package.json Cargo.toml index.js index.d.ts CHANGELOG.md LICENSE-3RD-PARTY.txt
71+
git add package.json Cargo.toml Cargo.lock index.js index.d.ts CHANGELOG.md LICENSE-3RD-PARTY.txt
7272
git commit -m "${{ github.event.inputs.version }}"
7373
git push
7474
- name: Set version output

cliff.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trim = true
2626
render_always = true
2727
# An array of regex based postprocessors to modify the changelog.
2828
postprocessors = [
29-
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/$GITHUB_REPO/issues/${2}))" },
29+
{ pattern = '\((\w+?\s*#([0-9]+))\)', replace = "([#${2}](https://github.com/mongodb-js/atlas-local-lib-js/pull/${2}))" },
3030
]
3131
# render body even when there are no releases to process
3232
# render_always = true
@@ -78,7 +78,7 @@ commit_parsers = [
7878
filter_commits = false
7979
# An array of link parsers for extracting external references, and turning them into URLs, using regex.
8080
link_parsers = [
81-
{ pattern = "#(\\d+)", href = "https://github.com/$GITHUB_REPO/issues/$1" }
81+
{ pattern = "#(\\d+)", href = "https://github.com/mongodb-js/atlas-local-lib-js/issues/$1" },
8282
]
8383
# Include only the tags that belong to the current branch.
8484
use_branch_tags = false

0 commit comments

Comments
 (0)