Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changesets

One intent file per change to a publishable package, named by its frontmatter
(`"<pkg>": <none|patch|minor|major>`) and followed by a line for a consumer.
The Release workflow consumes the pending intents into a version PR, writes each
package's `CHANGELOG.md`, and on merge pushes the `<pkg>@vX.Y.Z` tags and
creates the GitHub Releases. Packages are published to npm.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
# `edited` re-runs the squash-message lint when the title or body changes without a push.
types: [opened, synchronize, reopened, edited]
workflow_dispatch:

permissions:
contents: read
Expand Down Expand Up @@ -40,8 +41,8 @@ jobs:
- run: pnpm typecheck
# attw and publint guard the built dual-format output, so the build precedes them.
- run: pnpm build
- run: pnpm exec attw --pack .
- run: pnpm exec publint
- run: pnpm --filter @systemfsoftware/drizzle-pg-extras exec attw --pack .
- run: pnpm --filter @systemfsoftware/drizzle-pg-extras exec publint
# A Mergify queue draft is a pull request titled "merge queue: ...", which commitlint rejects; the pull request
# itself is still linted.
- if: github.event_name == 'pull_request' && !startsWith(github.head_ref, 'mergify/merge-queue/')
Expand Down Expand Up @@ -119,7 +120,7 @@ jobs:
cache: pnpm
# The rc install mutates this job's own dependency tree only (KTD3); this job runs tests only,
# so the mutation never feeds a static check — those run once, on the frozen lockfile.
- run: pnpm install --frozen-lockfile && pnpm add -D drizzle-orm@rc drizzle-kit@rc
- run: pnpm install --frozen-lockfile && pnpm add -D --filter @systemfsoftware/drizzle-pg-extras drizzle-orm@1.0.0-rc.5 drizzle-kit@1.0.0-rc.5
- run: pnpm test
env:
POSTGRES_URL: postgres://extras:extras@localhost:5432/drizzle_pg_extras
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches: [main]
workflow_dispatch:

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

permissions:
actions: write
contents: write
pull-requests: write
id-token: write

jobs:
release:
if: github.ref == 'refs/heads/main'
uses: systemfsoftware/pnpm-release-management/.github/workflows/release.yml@9615867c17489fb04be8bc74f568659d687df612
with:
ci-workflow: ci.yml
npm-publish: true
noop:
name: no release off main, so the run concludes success, not skipped
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 1
permissions: {}
steps:
- run: echo "Release writes only from refs/heads/main; $GITHUB_REF runs nothing."
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ coverage/
.tmp/
*.tsbuildinfo
.DS_Store
.direnv/
/result
/result-*
293 changes: 293 additions & 0 deletions docs/plans/2026-11-20-1945-chore-npm-trusted-publishing-plan.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"pnpm-lock.yaml",
"coverage/**",
"docs/**",
"CHANGELOG.md"
"**/CHANGELOG.md"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.96.1.wasm",
Expand Down
Loading
Loading