Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a tool to manage versioning and changelogs. Read the full documentation at https://changesets.dev.

We also have a quick list of common questions to get you started engaging with this project in our [FAQ](https://changesets.dev/faq).
12 changes: 12 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
"baseBranch": "main",
"access": "public",
"ignore": [],
"fixed": [],
"linked": [],
"format": "auto",
"updateInternalDependencies": "patch",
"commit": false,
"changelog": "@changesets/cli/changelog"
}
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release

on:
push:
branches: [main]
workflow_dispatch:
Comment thread
coderabbitai[bot] marked this conversation as resolved.

concurrency: ${{ github.workflow }}-${{ github.ref }}

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

jobs:
release:
name: Version or publish
# A manual run on another branch must never reach `changeset publish`.
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 20
services:
clickhouse:
image: clickhouse/clickhouse-server:26.8.2.7
env:
CLICKHOUSE_USER: maple
CLICKHOUSE_PASSWORD: maple
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
ports:
- 8123:8123
options: >-
--health-cmd "clickhouse-client --user maple --password maple --query 'SELECT 1'"
--health-interval 5s
--health-timeout 5s
--health-retries 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
- run: bun install --frozen-lockfile
# With changesets pending, opens or updates the "Version Packages" PR.
# Once that PR is merged, publishes to npm; prepublishOnly runs the release checks first.
# npm authenticates through trusted publishing (OIDC), so no token is configured here.
- uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
with:
version-script: bun run version-packages
publish-script: bun run release
commit-message: "chore: version packages"
pr-title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"
EFFECT_ORM_CLICKHOUSE_URL: http://127.0.0.1:8123
EFFECT_ORM_CLICKHOUSE_USER: maple
EFFECT_ORM_CLICKHOUSE_PASSWORD: maple
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Changelog
# @maple-dev/effect-orm

## 0.4.0

Expand Down
69 changes: 69 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,13 @@
"prepublishOnly": "bun run test:release",
"test:clickhouse": "bun run build && bun scripts/test-clickhouse.ts",
"test:package": "bun run build && bun scripts/check-package.ts",
"test:release": "bun scripts/test-clickhouse.ts --release"
"test:release": "bun scripts/test-clickhouse.ts --release",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "changeset publish"
},
"devDependencies": {
"@changesets/cli": "3.0.3",
"@clickhouse/client": "1.21.0",
"@effect/language-service": "^0.87.3",
"@effect/platform-bun": "4.0.0",
Expand Down
Loading