ci: add PR workflow, make release fail loudly when registry is unreachable, document setup
Some checks failed
Release / release (push) Has been cancelled

This commit is contained in:
sdarbinyan
2026-08-18 01:46:04 +04:00
parent dc7440fea5
commit 42bd01db3f
3 changed files with 104 additions and 13 deletions

36
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: CI
on:
pull_request:
push:
branches-ignore:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Require a changeset
run: |
if [ -z "$(ls -A .changeset/*.md 2>/dev/null | grep -v README)" ]; then
echo "No changeset found. Run 'npx changeset' and commit the result so this change gets a version bump."
exit 1
fi