Skip to content

Commit 1e677d0

Browse files
committed
refactor: rewrite project and tooling
1 parent 8c445af commit 1e677d0

File tree

117 files changed

+2284
-9032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2284
-9032
lines changed

.changeset/config.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/witty-squids-dance.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copy this file to .env and fill in the values
2+
3+
# This is needed to publish GitHub Releases
4+
GITHUB_TOKEN=your_github_token

.github/actions/setup-project/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
on:
2+
push:
3+
tags:
4+
- '[a-z]+@[0-9]+.[0-9]+.[0-9]+'
5+
- '[a-z]+-[a-z]+@[0-9]+.[0-9]+.[0-9]+'
6+
- '[a-z]+-[a-z]+-[a-z]+@[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write # Required for publishing the GitHub release
14+
id-token: write # OIDC ID token is used for authentication with npm/jsr
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
23+
- name: Install Node.js
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: 24
27+
registry-url: https://registry.npmjs.org
28+
cache: pnpm
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Run tests and typechecks
34+
run: pnpm test && pnpm typecheck
35+
36+
- name: Build packages
37+
run: pnpm build
38+
39+
- name: Parse package name from tag
40+
id: parse_tag
41+
run: |
42+
TAG="${{ github.ref_name }}"
43+
SHORT_PACKAGE_NAME="${TAG%@*}"
44+
PACKAGE_VERSION="${TAG##*@}"
45+
46+
# The "pizza" package is unscoped, all others are under @pizzajsdev/
47+
if [ "$SHORT_PACKAGE_NAME" = "pizza" ]; then
48+
PACKAGE_NAME="${SHORT_PACKAGE_NAME}"
49+
else
50+
PACKAGE_NAME="@pizzajsdev/${SHORT_PACKAGE_NAME}"
51+
fi
52+
53+
echo "package_name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT
54+
echo "package_version=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
55+
56+
- name: Publish to npm
57+
run: pnpm publish --filter "${{ steps.parse_tag.outputs.package_name }}" --access public --no-git-checks
58+
59+
- name: Create GitHub Release
60+
run: node ./scripts/create-github-release.js ${{ github.ref_name }}
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/quality-check.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v6
12+
13+
- name: Install pnpm
14+
uses: pnpm/action-setup@v4
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v6
18+
with:
19+
node-version: 24
20+
registry-url: https://registry.npmjs.org
21+
cache: pnpm
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Run tests
27+
run: pnpm test

.github/workflows/typecheck.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
jobs:
6+
typecheck:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v6
12+
13+
- name: Install pnpm
14+
uses: pnpm/action-setup@v4
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v6
18+
with:
19+
node-version: 24
20+
registry-url: https://registry.npmjs.org
21+
cache: pnpm
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Run typechecks
27+
run: pnpm typecheck

.gitignore

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,5 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
node_modules
6-
7-
# frameworks and tools
8-
coverage/
9-
.turbo/
10-
.next/
11-
.vercel/
12-
.react-router/
13-
out/
14-
cdk.out/
15-
.wrangler/
16-
17-
# production
18-
build/
191
dist/
20-
21-
# misc
22-
.DS_Store
23-
*.pem
24-
25-
# debug
26-
npm-debug.log*
27-
yarn-debug.log*
28-
yarn-error.log*
29-
30-
# env files (can opt-in for commiting if needed)
31-
.dev.vars
32-
.env
33-
.env*
34-
!.env.example
35-
36-
# typescript
37-
*.tsbuildinfo
38-
next-env.d.ts
39-
40-
# artifacts
41-
*~lock~
42-
*.zip
43-
*.tar.gz
44-
*.gz
45-
46-
# development
47-
.ignore/
2+
node_modules/
483
.local/
49-
.dev/
50-
*.local.md
51-
*.dev.md
4+
.tmp/
5+
.env

0 commit comments

Comments
 (0)