Fix Deno setup for release preparation

This commit is contained in:
vorotamoroz
2026-07-15 13:48:53 +00:00
parent b475ea64e2
commit d8bbab6bed
2 changed files with 14 additions and 0 deletions
+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");