32 lines
802 B
YAML
32 lines
802 B
YAML
name: Release Dry Run
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release-dry-run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate release metadata
|
|
run: |
|
|
test -f README.md
|
|
test -f CHANGELOG.md
|
|
test -f docs/release-checklist.md
|
|
test -f docs/release-notes.md
|
|
grep -q "Coworker-Setup" README.md
|
|
if rg "PROJECT_NAME|PROJECT_DESCRIPTION|REPOSITORY_OWNER|REPOSITORY_NAME|BUILD_COMMAND|TEST_COMMAND|LINT_COMMAND|AUDIT_COMMAND" .; then
|
|
echo "Unresolved template placeholder found"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Release check
|
|
run: npm run release:check
|