mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-16 09:36:00 +00:00
Fix Deno setup for release preparation
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user