Skip to content

Commit

Permalink
Merge pull request #1854 from hackmdio/release/2.5.3
Browse files Browse the repository at this point in the history
Release 2.5.3
  • Loading branch information
Yukaii committed Jan 8, 2024
2 parents b396c4d + b97a2bf commit 80cd92f
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Test github actions with act

```bash
act pull_request --container-architecture linux/arm64 -e .github/tests/pull-request.json -j ch
eck-release-pr -P ubuntu-latest=catthehacker/ubuntu:act-latest
```
10 changes: 10 additions & 0 deletions .github/tests/pull-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pull_request": {
"head": {
"ref": "release/1.2.3"
},
"base": {
"ref": "master"
}
}
}
41 changes: 41 additions & 0 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release PR Checks

on:
workflow_dispatch:
pull_request:
branches:
- master

jobs:
check-release-pr:
if: startsWith(github.head_ref, 'release/')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for release-notes updates
run: |
if ! git diff --exit-code origin/develop -- public/docs/release-notes.md; then
echo "Release notes updated."
else
echo "Error: Release notes not updated in the PR."
exit 1
fi
- name: Compare package.json version with master
run: |
git fetch origin master
MASTER_PACKAGE_VERSION=$(git show origin/master:package.json | jq -r '.version')
BRANCH_PACKAGE_VERSION=$(jq -r '.version' package.json)
if [ "$BRANCH_PACKAGE_VERSION" != "$MASTER_PACKAGE_VERSION" ]; then
echo "Version bumped in package.json."
else
echo "Error: Version in package.json has not been bumped."
exit 1
fi
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codimd",
"version": "2.5.1",
"version": "2.5.3",
"description": "Realtime collaborative markdown notes on all platforms.",
"keywords": [
"Collaborative",
Expand Down
14 changes: 14 additions & 0 deletions public/docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Release Notes
===

<i class="fa fa-tag"></i> 2.5.3 <i class="fa fa-clock-o"></i> 2024-01-08
---

[Check out the complete release note][v2_5_3]. Thank you CodiMD community and all our contributors. ❤️

[v2_5_3]: https://hackmd.io/@codimd/release-notes/%2F%40codimd%2Fv2_5_3

It's a minor fix release that bumps the version number in `package.json`

## Enhancements

- Add `codeium-chrome` extension support [#1851](https://github.com/hackmdio/codimd/pull/1851)
- Add `check-release` GitHub action workflow that prevents us from forgetting to update the `package.json` during releases again [#1852](https://github.com/hackmdio/codimd/pull/1852)

<i class="fa fa-tag"></i> 2.5.2 <i class="fa fa-clock-o"></i> 2024-01-05
---

Expand Down
1 change: 1 addition & 0 deletions public/views/codimd/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="mobile-web-app-capable" content="yes">
<meta name="codeium:type" content="codemirror5">
<title><%= title %></title>
<link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png">
<link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png">
Expand Down

0 comments on commit 80cd92f

Please sign in to comment.