Skip to content

Commit 91a494b

Browse files
committed
chore: bump version to 1.0.4, cleanup code/files, and fix release workflow
1 parent 1a49690 commit 91a494b

File tree

10 files changed

+28
-9919
lines changed

10 files changed

+28
-9919
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,24 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20.x'
21+
22+
- name: Install dependencies and build
23+
run: |
24+
npm install -g pnpm
25+
pnpm install
26+
pnpm run build
27+
1728
- name: Package plugin files
1829
run: |
1930
mkdir -p dist/${PLUGIN_ID}
2031
cp manifest.json dist/${PLUGIN_ID}/
2132
cp versions.json dist/${PLUGIN_ID}/
2233
cp main.js dist/${PLUGIN_ID}/
2334
cp styles.css dist/${PLUGIN_ID}/
24-
mkdir -p dist/${PLUGIN_ID}/lib
25-
cp lib/asciinema-player.js dist/${PLUGIN_ID}/lib/
26-
cp lib/asciinema-player.css dist/${PLUGIN_ID}/lib/
2735
(
2836
cd dist
2937
zip -r "${PLUGIN_ID}-${GITHUB_REF_NAME}.zip" "${PLUGIN_ID}"

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ The format of this document follows [Keep a Changelog](https://keepachangelog.co
88

99
- ...
1010

11+
## [1.0.4] - 2025-12-22
12+
13+
- Removed redundant async/await and improved type safety in code.
14+
- Removed unused and generated files (`lib/`, `main.js`, `data.json`) from repository.
15+
- Updated build and copy scripts to reflect file removals.
16+
1117
## [1.0.3] - 2025-10-15
1218

1319
- Hardened asciinema player rendering against innerHTML usage.
@@ -25,7 +31,8 @@ The format of this document follows [Keep a Changelog](https://keepachangelog.co
2531
- Initial release of the Obsidian Asciinema Player plugin.
2632

2733
<!-- Release link references -->
28-
[unreleased]: https://github.com/deeplook/obsidian-asciinema-player/compare/1.0.3...HEAD
34+
[unreleased]: https://github.com/deeplook/obsidian-asciinema-player/compare/1.0.4...HEAD
35+
[1.0.4]: https://github.com/deeplook/obsidian-asciinema-player/releases/tag/1.0.4
2936
[1.0.3]: https://github.com/deeplook/obsidian-asciinema-player/releases/tag/1.0.3
3037
[1.0.2]: https://github.com/deeplook/obsidian-asciinema-player/releases/tag/1.0.2
3138
[1.0.1]: https://github.com/deeplook/obsidian-asciinema-player/releases/tag/1.0.1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ This is an [Obsidian](https://obsidian.md) plugin to embed terminal recordings m
2323

2424
### Manually
2525

26-
1. Download the ready-to-use zipped archive from the [latest releases](https://github.com/deeplook/obsidian-asciinema-player/releases) page on GitHub (named after the plugin id and version tag e.g., `obsidian-asciinema-player-1.0.3.zip`).
26+
1. Download the ready-to-use zipped archive from the [latest releases](https://github.com/deeplook/obsidian-asciinema-player/releases) page on GitHub (named after the plugin id and version tag e.g., `obsidian-asciinema-player-1.0.4.zip`).
2727
2. Unzip it.
2828
3. Move the extracted `obsidian-asciinema-player` folder into your vault's `.obsidian/plugins` folder.
2929
4. Then enable the plugin in the "Community Plugins" tab in Obsidian's settings, like when installing any registered community plugin. Example:
3030

3131
```shell
32-
curl -O https://github.com/deeplook/obsidian-asciinema-player/releases/download/1.0.3/obsidian-asciinema-player-1.0.3.zip
33-
unzip obsidian-asciinema-player-1.0.3.zip
32+
curl -O https://github.com/deeplook/obsidian-asciinema-player/releases/download/1.0.4/obsidian-asciinema-player-1.0.4.zip
33+
unzip obsidian-asciinema-player-1.0.4.zip
3434
mv obsidian-asciinema-player /path/to/your-vault/.obsidian/plugins/
3535
```
3636

data.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)