ReviewOS

also looking at this

stacks/dynamodb-tooling

feat: new release script using pantry

#50
Closed glennmichael123 wants to merge feat/pantry-release into main
2 files +47 -13
.github/workflows/release.ymlmodified+15-13
Changes to .github/workflows/release.yml
@@ -1,4 +1,4 @@
1name: CI
1name: Releaser / npm
22
33on:
44 push:
@@ -6,28 +6,30 @@ on:
66 - 'v*'
77
88jobs:
9 release:
10 name: Release
9 npm:
10 name: npm
1111 runs-on: ubuntu-latest
1212
1313 steps:
14 - uses: actions/checkout@v6
14 - uses: actions/checkout@v4
1515 with:
1616 fetch-depth: 0
1717
18 - name: Set Node.js
19 uses: actions/setup-node@v6
18 - name: Setup Bun
19 uses: oven-sh/setup-bun@v2
2020 with:
21 registry-url: 'https://registry.npmjs.org'
21 bun-version: latest
2222
23 - name: Install Bun
24 uses: oven-sh/setup-bun@v2
23 - name: Setup pantry
24 uses: stacksjs/pantry@v0.7
25 with:
26 setup-only: 'true'
2527
2628 - name: Use cached node_modules
2729 uses: actions/cache@v4
2830 with:
2931 path: node_modules
30 key: node-modules-${{ hashFiles('**/bun.lockb') }}
32 key: node-modules-${{ hashFiles('**/bun.lock') }}
3133 restore-keys: |
3234 node-modules-
3335
@@ -38,11 +40,11 @@ jobs:
3840 run: bun run build
3941
4042 - name: Publish to npm
41 run: npm publish --access public --no-git-checks
43 run: pantry publish --access public
4244 env:
43 NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4446
4547 - name: Create GitHub release
46 run: npx changelogithub
48 run: bunx changelogithub
4749 env:
4850 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
DYNAMODB_TODO.mdadded+32-0
Changes to DYNAMODB_TODO.md
@@ -0,0 +1,32 @@
1# DynamoDB Tooling TODO
2
3## DynamoDB ORM Driver
4
5### Stacks Models to Single Table Design
6**Status:** Needs Work
7**Description:** Build special DynamoDB "ORM driver"/tool where Stacks models are transformed to single table designs. Perfect use case for pantry registry API.
8
9**Tasks:**
10- [ ] Finish DynamoDB ORM driver
11- [ ] Transform Stacks models to single table design
12- [ ] Define access patterns for common queries
13- [ ] Implement GSI (Global Secondary Index) strategies
14- [ ] Add migration tooling for schema changes
15- [ ] Document single table design patterns
16
17---
18
19## Use Cases
20
21- Pantry registry API backend
22- Fathom analytics alternative storage
23- Heatmap data storage
24- Any high-scale, low-latency data needs
25
26---
27
28## Notes
29
30- Single table design is the recommended pattern for DynamoDB
31- Should integrate with bun-query-builder's DynamoDB driver
32- Stacks models should be easily transformable to DynamoDB items