From 7dfc0233609cc4f182fc8b2f2c337cb5b3d706c6 Mon Sep 17 00:00:00 2001 From: murashit Date: Fri, 17 Jul 2026 10:42:52 +0900 Subject: [PATCH] chore(release): 5.0.4 --- .github/release-notes/5.0.4.md | 3 +++ .github/workflows/release.yml | 17 ----------------- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- scripts/build-styles.mjs | 3 ++- tests/scripts/development-scripts.test.ts | 15 +++++++++++++++ versions.json | 3 ++- 8 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 .github/release-notes/5.0.4.md diff --git a/.github/release-notes/5.0.4.md b/.github/release-notes/5.0.4.md new file mode 100644 index 00000000..112ca483 --- /dev/null +++ b/.github/release-notes/5.0.4.md @@ -0,0 +1,3 @@ +## Changes + +- Restored availability of downloadable install assets while upstream attestation verification catches up with GitHub's API changes. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a6a9984..70970614 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,6 @@ on: permissions: contents: write - id-token: write - attestations: write jobs: release: @@ -56,21 +54,6 @@ jobs: - name: Run checks and build run: npm run check - - name: Generate main.js artifact attestation - uses: actions/attest@a1948c3f048ba23858d222213b7c278aabede763 # v4 - with: - subject-path: main.js - - - name: Generate manifest.json artifact attestation - uses: actions/attest@a1948c3f048ba23858d222213b7c278aabede763 # v4 - with: - subject-path: manifest.json - - - name: Generate styles.css artifact attestation - uses: actions/attest@a1948c3f048ba23858d222213b7c278aabede763 # v4 - with: - subject-path: styles.css - - name: Create GitHub release env: GH_TOKEN: ${{ github.token }} diff --git a/manifest.json b/manifest.json index 3993f369..b309c7be 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "codex-panel", "name": "Codex Panel", - "version": "5.0.3", + "version": "5.0.4", "minAppVersion": "1.12.0", "description": "Codex in your sidebar.", "author": "murashit", diff --git a/package-lock.json b/package-lock.json index d54a0a8b..bfdbdd64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codex-panel", - "version": "5.0.3", + "version": "5.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codex-panel", - "version": "5.0.3", + "version": "5.0.4", "license": "Apache-2.0", "dependencies": { "@tanstack/query-core": "^5.101.2", diff --git a/package.json b/package.json index 4595384a..a532840b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codex-panel", - "version": "5.0.3", + "version": "5.0.4", "description": "Codex in your Obsidian sidebar.", "main": "main.js", "author": "murashit", diff --git a/scripts/build-styles.mjs b/scripts/build-styles.mjs index e5abe584..3bb4d3ae 100644 --- a/scripts/build-styles.mjs +++ b/scripts/build-styles.mjs @@ -21,6 +21,7 @@ export async function buildStyles() { } export async function renderStyles() { + const { version } = JSON.parse(await readFile("package.json", "utf8")); const parts = []; const sourceFiles = await readStyleOrder(); @@ -29,7 +30,7 @@ export async function renderStyles() { parts.push(content.trimEnd()); } - return `${parts.join("\n\n")}\n`; + return `/* Codex Panel v${version} */\n\n${parts.join("\n\n")}\n`; } async function readStyleOrder() { diff --git a/tests/scripts/development-scripts.test.ts b/tests/scripts/development-scripts.test.ts index e76b4836..ca98c915 100644 --- a/tests/scripts/development-scripts.test.ts +++ b/tests/scripts/development-scripts.test.ts @@ -14,6 +14,21 @@ afterEach(async () => { }); describe("development scripts", () => { + it("includes the plugin version in generated CSS", async () => { + const cwd = await tempWorkspace(); + await mkdir(path.join(cwd, "src", "styles"), { recursive: true }); + await writeJson(path.join(cwd, "package.json"), { version: "5.0.4" }); + await writeJson(path.join(cwd, "src", "styles", "order.json"), ["00-tokens.css"]); + await writeFile(path.join(cwd, "src", "styles", "00-tokens.css"), ".codex-panel { color: var(--text-normal); }\n"); + + const result = runNodeScript("scripts/build-styles.mjs", [], cwd); + + expect(result.status).toBe(0); + await expect(readFile(path.join(cwd, "styles.css"), "utf8")).resolves.toBe( + "/* Codex Panel v5.0.4 */\n\n.codex-panel { color: var(--text-normal); }\n", + ); + }); + it("fails style builds when CSS files are missing from the style order file", async () => { const cwd = await styleOrderFixture(); diff --git a/versions.json b/versions.json index 8e243bdb..73540684 100644 --- a/versions.json +++ b/versions.json @@ -82,5 +82,6 @@ "5.0.0": "1.12.0", "5.0.1": "1.12.0", "5.0.2": "1.12.0", - "5.0.3": "1.12.0" + "5.0.3": "1.12.0", + "5.0.4": "1.12.0" }