Skip to content

Commit 80cd92f

Browse files
authored
Merge pull request #1854 from hackmdio/release/2.5.3
Release 2.5.3
2 parents b396c4d + b97a2bf commit 80cd92f

File tree

7 files changed

+75
-3
lines changed

7 files changed

+75
-3
lines changed

.github/tests/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Test github actions with act
2+
3+
```bash
4+
act pull_request --container-architecture linux/arm64 -e .github/tests/pull-request.json -j ch
5+
eck-release-pr -P ubuntu-latest=catthehacker/ubuntu:act-latest
6+
```

.github/tests/pull-request.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"pull_request": {
3+
"head": {
4+
"ref": "release/1.2.3"
5+
},
6+
"base": {
7+
"ref": "master"
8+
}
9+
}
10+
}

.github/workflows/check-release.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release PR Checks
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
check-release-pr:
11+
if: startsWith(github.head_ref, 'release/')
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Check for release-notes updates
21+
run: |
22+
if ! git diff --exit-code origin/develop -- public/docs/release-notes.md; then
23+
echo "Release notes updated."
24+
else
25+
echo "Error: Release notes not updated in the PR."
26+
exit 1
27+
fi
28+
29+
- name: Compare package.json version with master
30+
run: |
31+
git fetch origin master
32+
MASTER_PACKAGE_VERSION=$(git show origin/master:package.json | jq -r '.version')
33+
BRANCH_PACKAGE_VERSION=$(jq -r '.version' package.json)
34+
35+
if [ "$BRANCH_PACKAGE_VERSION" != "$MASTER_PACKAGE_VERSION" ]; then
36+
echo "Version bumped in package.json."
37+
else
38+
echo "Error: Version in package.json has not been bumped."
39+
exit 1
40+
fi
41+

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codimd",
3-
"version": "2.5.1",
3+
"version": "2.5.3",
44
"description": "Realtime collaborative markdown notes on all platforms.",
55
"keywords": [
66
"Collaborative",

public/docs/release-notes.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Release Notes
22
===
33

4+
<i class="fa fa-tag"></i> 2.5.3 <i class="fa fa-clock-o"></i> 2024-01-08
5+
---
6+
7+
[Check out the complete release note][v2_5_3]. Thank you CodiMD community and all our contributors. ❤️
8+
9+
[v2_5_3]: https://hackmd.io/@codimd/release-notes/%2F%40codimd%2Fv2_5_3
10+
11+
It's a minor fix release that bumps the version number in `package.json`
12+
13+
## Enhancements
14+
15+
- Add `codeium-chrome` extension support [#1851](https://github.com/hackmdio/codimd/pull/1851)
16+
- 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)
17+
418
<i class="fa fa-tag"></i> 2.5.2 <i class="fa fa-clock-o"></i> 2024-01-05
519
---
620

public/views/codimd/head.ejs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta name="apple-mobile-web-app-capable" content="yes">
55
<meta name="apple-mobile-web-app-status-bar-style" content="black">
66
<meta name="mobile-web-app-capable" content="yes">
7+
<meta name="codeium:type" content="codemirror5">
78
<title><%= title %></title>
89
<link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png">
910
<link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png">

0 commit comments

Comments
 (0)