chore(release): 5.0.4

This commit is contained in:
murashit 2026-07-17 10:42:52 +09:00
parent 900d5cd53c
commit 7dfc023360
8 changed files with 26 additions and 23 deletions

3
.github/release-notes/5.0.4.md vendored Normal file
View file

@ -0,0 +1,3 @@
## Changes
- Restored availability of downloadable install assets while upstream attestation verification catches up with GitHub's API changes.

View file

@ -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 }}

View file

@ -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",

4
package-lock.json generated
View file

@ -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",

View file

@ -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",

View file

@ -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() {

View file

@ -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();

View file

@ -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"
}