-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
42 lines (35 loc) · 1.3 KB
/
justfile
File metadata and controls
42 lines (35 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Default: list available recipes
default:
@just --list
# Run tests
test:
npm test
# Build dist/ (committed to repo so the action works without npm install)
build:
npm run build
# Verify dist/ matches source — same check CI runs
check-dist:
@git diff --exit-code dist/ || (echo "dist/ is out of date. Run: just build" && exit 1)
# Run the full CI suite locally: test + build + verify dist
ci: test build check-dist
# Set up CI secrets for release artifact signing (one-time)
ci-setup:
auths ci setup
# Sign the dist/index.js artifact locally (creates dist/index.js.auths.json)
sign-dist:
auths artifact sign dist/index.js
# Cut a release: bump version (if needed), commit, then tag+push via release script
# The release workflow handles build verification, artifact signing, and GitHub release creation.
# Usage: just release 1.0.0
release VERSION: test build
#!/usr/bin/env bash
set -euo pipefail
CURRENT=$(node -p "require('./package.json').version")
if [ "$CURRENT" != "{{VERSION}}" ]; then
npm version {{VERSION}} --no-git-tag-version
git add package.json package-lock.json dist/ src/ .github/ justfile
git commit -m "build: bump version to {{VERSION}}"
else
echo "Version already {{VERSION}}, skipping bump"
fi
python scripts/release.py --push