Skip to content

Commit 293c2db

Browse files
committed
feat: prepare CellScript public registry release
1 parent 49a1ba1 commit 293c2db

67 files changed

Lines changed: 21995 additions & 1297 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Website Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
- "nightly-*"
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: website-build-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 15
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.12"
28+
29+
- name: Set up Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: "22"
33+
cache: "npm"
34+
cache-dependency-path: website/package-lock.json
35+
36+
- name: Install website dependencies
37+
run: npm --prefix website ci
38+
39+
- name: Generate registry website data
40+
run: npm --prefix website run prepare:registry
41+
42+
- name: Check generated registry data is committed
43+
run: |
44+
if [[ -n "$(git status --porcelain -- website/src/data/registry-packages.json)" ]]; then
45+
echo "website/src/data/registry-packages.json is stale or missing"
46+
git status --short -- website/src/data/registry-packages.json
47+
git diff -- website/src/data/registry-packages.json
48+
exit 1
49+
fi
50+
51+
- name: Build website
52+
run: npm --prefix website run build
53+
54+
- name: Upload website dist
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: cellscript-website-dist
58+
path: website/dist/
59+
if-no-files-found: error

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
/target/
2+
node_modules/
3+
dist/
4+
services/registry-api/dist/
25
editors/vscode-cellscript/dist/
36

47
.DS_Store
58
.vscode/
69
.cap/
10+
.wrangler/
711
__pycache__/
812
*.py[cod]
913
*.swp
@@ -46,6 +50,7 @@ proposals/evolving-dob/*
4650
!proposals/evolving-dob/evolving-dob-profile-v1/**
4751
!proposals/evolving-dob/evolving-dob-profile-v1/Cell.lock
4852
proposals/novaseal/v0-mvp-skeleton/build/
53+
proposals/novaseal/**/.cell/
4954
proposals/novaseal/v0-mvp-skeleton/target/
5055
proposals/novaseal/v0-mvp-skeleton/src/.cell/
5156
proposals/novaseal/v0-mvp-skeleton/scripts/__pycache__/

0 commit comments

Comments
 (0)