Skip to content

Commit c8b7dbd

Browse files
authored
Merge branch 'main' into codex/add-github-action-for-ci-on-prs
2 parents 5b0a262 + a2ae6b1 commit c8b7dbd

File tree

5 files changed

+55
-10
lines changed

5 files changed

+55
-10
lines changed

.github/workflows/release-artifact.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build Release Package
22

33
on:
4-
release:
5-
types: [published, prereleased]
64
workflow_dispatch:
75
inputs:
86
tag:
@@ -45,12 +43,7 @@ jobs:
4543

4644
- name: Determine release tag
4745
id: release
48-
run: |
49-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
50-
echo "tag=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
51-
else
52-
echo "tag=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
53-
fi
46+
run: echo "tag=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
5447

5548
- name: Upload package to release
5649
uses: softprops/action-gh-release@v2

.github/workflows/release-please.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,53 @@ permissions:
1313
jobs:
1414
release-please:
1515
runs-on: ubuntu-latest
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
18+
tag_name: ${{ steps.release.outputs.tag_name }}
19+
upload_url: ${{ steps.release.outputs.upload_url }}
1620
steps:
1721
- name: Run release-please
22+
id: release
1823
uses: googleapis/release-please-action@v4
1924
with:
2025
config-file: release-please-config.json
2126
manifest-file: release-please-manifest.json
27+
28+
build-artifact:
29+
name: Build Release Artifact
30+
needs: release-please
31+
if: needs.release-please.outputs.release_created == 'true'
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: Setup pnpm
38+
uses: pnpm/action-setup@v3
39+
with:
40+
version: 9
41+
run_install: false
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '20'
47+
cache: 'pnpm'
48+
49+
- name: Install dependencies
50+
run: pnpm install --frozen-lockfile
51+
52+
- name: Prepare build output
53+
run: |
54+
rm -rf build package
55+
56+
- name: Build extension package
57+
run: pnpm run zip
58+
59+
- name: Upload package to release
60+
uses: softprops/action-gh-release@v2
61+
with:
62+
files: package/*.zip
63+
upload_url: ${{ needs.release-please.outputs.upload_url }}
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Summary
99
5. version timestamp follow the yyyy.MM.dd format
1010
```
1111

12+
## [1.1.0](https://github.com/CoderPush/coderchart/compare/v1.0.0...v1.1.0) (2025-09-29)
13+
14+
15+
### Features
16+
17+
* Add copy-to-clipboard fix prompt to Mermaid error notice ([#2](https://github.com/CoderPush/coderchart/issues/2)) ([7fb5785](https://github.com/CoderPush/coderchart/commit/7fb57851b6767cf83e5e338c51c5d9afa6862efa))
18+
* add diagram/code toggles for Mermaid blocks ([#7](https://github.com/CoderPush/coderchart/issues/7)) ([90c460f](https://github.com/CoderPush/coderchart/commit/90c460f65f5efe95c28cc4ce57b9d105606e5517))
19+
1220
## 1.0.0 (2025-09-26)
1321

1422

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "coderchart",
33
"displayName": "coderchart",
4-
"version": "1.0.0",
4+
"version": "1.1.0",
55
"author": "harley",
66
"description": "Chrome extension that auto-renders Mermaid diagrams on ChatGPT with inline downloads.",
77
"type": "module",

release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "1.1.0"
33
}

0 commit comments

Comments
 (0)