Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
github.ref == 'refs/heads/main'
&& (github.event_name == 'push' || inputs.publish_to_npm)
permissions:
actions: read
contents: write
id-token: write
# Keep this caller filename stable: npm trusted publishing authorizes it.
Expand Down
20 changes: 19 additions & 1 deletion scripts/bun-lock-workspace-versions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,27 @@ describe("bun.lock workspace self-version synchronization", () => {
publishWorkflow.indexOf(" workflow_dispatch:"),
);

for (const packageName of ["typescript-config", "oxlint-config"]) {
for (const packageName of [
"typescript-config",
"oxlint-config",
"oxlint-plugin",
]) {
expect(pushTrigger).toContain(`packages/${packageName}/CHANGELOG.md`);
expect(pushTrigger).not.toContain(`packages/${packageName}/package.json`);
}
});

test("release caller can verify and download package artifacts", async () => {
const publishWorkflow = await Bun.file(
new URL("../.github/workflows/publish.yml", import.meta.url),
).text();
const releaseJob = publishWorkflow.slice(
publishWorkflow.indexOf(" release:"),
);

expect(releaseJob).toContain("actions: read");
expect(releaseJob.indexOf("actions: read")).toBeLessThan(
releaseJob.indexOf("uses: stella/.github/"),
);
});
});
Loading