Skip to content

Commit 247a5bd

Browse files
committed
v1.7.2
1 parent 1669590 commit 247a5bd

File tree

4 files changed

+316
-278
lines changed

4 files changed

+316
-278
lines changed

.github/workflows/publish.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,69 @@ jobs:
105105
git add .
106106
git commit -m "Update documentation for version v${{ steps.pkg.outputs.version }}"
107107
git push
108+
109+
creating-git-tag:
110+
name: Create Git Tag
111+
needs:
112+
- publish
113+
runs-on: self-hosted
114+
steps:
115+
- name: Checkout sources
116+
uses: actions/checkout@v4
117+
with:
118+
fetch-depth: 0
119+
120+
- name: Set up Node.js
121+
uses: actions/setup-node@v3
122+
with:
123+
node-version: 18
124+
125+
- name: Extract version from package.json
126+
id: pkg
127+
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
128+
129+
- name: Create and Push Git Tag
130+
run: |
131+
git config user.name "GitHub Actions"
132+
git config user.email "[email protected]"
133+
TAG="v${{ steps.pkg.outputs.version }}"
134+
git tag $TAG
135+
git push origin $TAG
136+
137+
creating-github-release:
138+
name: Create GitHub Release
139+
needs:
140+
- creating-git-tag
141+
runs-on: self-hosted
142+
steps:
143+
- name: Checkout sources
144+
uses: actions/checkout@v4
145+
146+
- name: Set up Node.js
147+
uses: actions/setup-node@v3
148+
with:
149+
node-version: 18
150+
151+
- name: Extract version from package.json
152+
id: pkg
153+
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
154+
155+
- name: Extract Changelog Entry
156+
id: changelog
157+
uses: juliangruber/read-file-action@v1
158+
with:
159+
path: ./CHANGELOG.md
160+
161+
- name: Parse Changelog Entry
162+
run: |
163+
CHANGELOG_CONTENT=$(echo '${{ steps.changelog.outputs.content }}' | awk '/### ${{ steps.pkg.outputs.version }}/,/### /{print; if (/### / && !/### ${{ steps.pkg.outputs.version }}/){exit}}')
164+
echo "CHANGELOG=$CHANGELOG_CONTENT" >> $GITHUB_ENV
165+
166+
- name: Create GitHub Release
167+
uses: softprops/action-gh-release@v1
168+
with:
169+
tag_name: v${{ steps.pkg.outputs.version }}
170+
name: Release v${{ steps.pkg.outputs.version }}
171+
body: ${{ env.CHANGELOG }}
172+
env:
173+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.7.2] - 2023-12-01
4+
5+
Changes in this version:
6+
7+
- Implemented automatic GitHub release and tag creation in the CI pipeline. This enhancement, addressed in issue [#133](https://github.com/MrRefactoring/confluence.js/issues/133), automates the process of creating GitHub releases and tags corresponding to new versions, streamlining the release process.
8+
- Thanks to [Joe Ennever](https://github.com/JoeEnnever), the `searchContentByCQL` method has been enhanced with an `expand` property. This addition, merged in pull request [#134](https://github.com/MrRefactoring/confluence.js/pull/134/files), allows for more flexible and detailed content queries in the Confluence API.
9+
310
### 1.7.0
411

512
- `apiPrefix` was added to the code for allowing to use of custom API prefix for all clients. Thanks to [Petr Plenkov](https://github.com/ThePlenkov) for the pull request.

0 commit comments

Comments
 (0)