Fix Deno setup for release preparation

This commit is contained in:
vorotamoroz committed 2026-07-15 13:48:53 +00:00
1 parent b475ea64e2
commit c7c562d6d1
2 files changed
+14

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ jobs:
node-version: "24.x" node-version: "24.x"
cache: npm cache: npm
- name: Use Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
+9
View File
@@ -113,6 +113,15 @@ describe("release workflow", () => {
expect(workflow).toMatch(/git add[^\n]*_types/); expect(workflow).toMatch(/git add[^\n]*_types/);
}); });
it("installs Deno before post-processing fallback type definitions", () => {
const workflow = readFileSync(prepareReleaseWorkflow, "utf8");
const setupDeno = workflow.indexOf("denoland/setup-deno@v2");
const buildTypes = workflow.indexOf("npm run build:lib:types");
expect(setupDeno).toBeGreaterThan(-1);
expect(setupDeno).toBeLessThan(buildTypes);
});
it("keeps the release PR in draft until BRAT validation", () => { it("keeps the release PR in draft until BRAT validation", () => {
const workflow = readFileSync(prepareReleaseWorkflow, "utf8"); const workflow = readFileSync(prepareReleaseWorkflow, "utf8");