add API issue and release scaffolding
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
name: API release check
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags: ['v*.*.*']
|
||||
|
||||
jobs:
|
||||
release-check:
|
||||
runs-on: debian-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
- name: Validate release metadata
|
||||
run: test -s CHANGELOG.md && test -s README.md && test -s docs/versioning.md
|
||||
- name: Validate JSON
|
||||
run: node --input-type=module -e "import { readdir, readFile } from 'node:fs/promises'; for (const d of ['contracts/v1','fixtures/v1']) for (const f of await readdir(d)) if (f.endsWith('.json')) JSON.parse(await readFile(d + '/' + f, 'utf8'));"
|
||||
Reference in New Issue
Block a user