fix: mark beta site releases as prereleases
CI / build (pull_request) Successful in 12s

This commit is contained in:
chrnx committed 2026-08-02 23:45:33 -05:00
1 parent 30afa8b630
commit 41709bec46
2 files changed
+13

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import test from 'node:test';
test('publishes beta tags as GitHub prereleases', async () => {
const workflow = await readFile(new URL('../.github/workflows/release.yml', import.meta.url), 'utf8');
assert.match(
workflow,
/uses: softprops\/action-gh-release@v2[\s\S]*?with:\s*\n\s+prerelease: true\s*\n\s+files:/,
);
});