From 63b36856bc89f62b216e689e2b25390a7eeb9395 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Mon, 5 Jan 2026 10:43:50 -0800 Subject: [PATCH 1/2] chore: bump version to 5.69.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 83d6c96966..c09a2a6b49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hackmd/codemirror", - "version": "5.65.9", + "version": "5.65.10", "main": "lib/codemirror.js", "style": "lib/codemirror.css", "author": { From 51a8782da7169026ed7a9a018b8cbe4b7fa1f79c Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Mon, 5 Jan 2026 10:54:11 -0800 Subject: [PATCH 2/2] chore: setup github action for publishing package --- .github/workflows/ci.yml | 4 ++-- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00c58ba5a4..b4dccaf3e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,9 @@ jobs: runs-on: ubuntu-latest name: Build and test steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: '/home/runner/work/codemirror/codemirror/node_modules' key: ${{ runner.os }}-modules diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000000..59aa30a55e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish Package + +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22' + registry-url: 'https://registry.npmjs.org' + + - run: npm ci + + - run: npm run build --if-present + + - run: npm test + + - run: npm publish