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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["create-db-worker", "claim-db-worker"],
"linked": [["create-db", "create-db-worker", "claim-db-worker"]]
"linked": [["create-db", "create-pg", "create-postgres"]]
}
26 changes: 10 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@ jobs:
- name: 🔧 Install dependencies
run: pnpm install

- name: 🔧 Install jq
run: |
sudo apt-get update
sudo apt-get install -y jq

- name: ✔️ Check for pending changesets
run: |
pnpm changeset status --output status.json
if [ "$(jq '.changesets | length' status.json)" -eq 0 ]; then
echo "❌ No changesets found. Please run 'pnpm changeset' and add a summary." >&2
exit 1
fi
# install jq if missing
- name: 🔧 Install jq
run: sudo apt-get update && sudo apt-get install -y jq

- name: 🔄 Bump versions & generate changelogs
id: bump
Expand All @@ -54,15 +56,12 @@ jobs:
done

- name: 💾 Commit & push version bump
id: commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# collect all bumped package@version
VERSIONS=$(jq -r '.packages | to_entries[]
| select(.value.changes != null)
| .value.name + "@" + .value.packageJSON.version'
status.json | paste -sd ', ' -)
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
VERSIONS=$(jq -r '.releases[] | .name + "@" + .newVersion' status.json | paste -sd ", " -)
git commit -am "chore(release): bump $VERSIONS [skip ci]" || echo "no version changes"
git push origin main --follow-tags

Expand All @@ -71,7 +70,6 @@ jobs:
echo "# Release ${{ steps.bump.outputs.newVersion }}" > AGGREGATED_CHANGELOG.md
for pkg in $WORKSPACES; do
echo "## $pkg" >> AGGREGATED_CHANGELOG.md
# pull just the section for the new version from each CHANGELOG
sed -n "/^## ${{ steps.bump.outputs.newVersion }}/,/^## /p" $pkg/CHANGELOG.md \
| sed '1d;$d' \
>> AGGREGATED_CHANGELOG.md
Expand All @@ -90,13 +88,9 @@ jobs:
- name: 🔑 Configure npm auth
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.CREATE_DB_TOKEN_NPM }}" > ~/.npmrc

- name: 🚀 Publish all real releases
- name: 🚀 Publish CLIs
run: |
for pkg in $WORKSPACES; do
cd "$pkg"
pnpm publish --access public
cd - >/dev/null
done
pnpm -r --filter "{create-db,create-pg,create-postgres}" publish --access public

# — CF production deploys commented out; we rely on existing worker URLs
# - name: ☁️ Deploy create-db-worker (production)
Expand Down
2 changes: 1 addition & 1 deletion claim-db-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "claim-worker",
"name": "claim-db-worker",
"version": "0.0.2",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion create-db-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "worker",
"name": "create-db-worker",
"version": "0.0.2",
"private": true,
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions create-db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# create-db

## 0.0.3

### Patch Changes

- fix: clearing change log versions
2 changes: 1 addition & 1 deletion create-db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-db",
"version": "0.0.2",
"version": "0.0.3",
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
"main": "index.js",
"author": "",
Expand Down
9 changes: 9 additions & 0 deletions create-pg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# create-pg

## 0.0.3

### Patch Changes

- fix: clearing change log versions
- Updated dependencies
- [email protected]
2 changes: 1 addition & 1 deletion create-pg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-pg",
"version": "0.0.2",
"version": "0.0.3",
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
"main": "index.js",
"author": "",
Expand Down
9 changes: 9 additions & 0 deletions create-postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# create-postgres

## 0.0.3

### Patch Changes

- fix: clearing change log versions
- Updated dependencies
- [email protected]
2 changes: 1 addition & 1 deletion create-postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-postgres",
"version": "0.0.2",
"version": "0.0.3",
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
"main": "index.js",
"author": "",
Expand Down
51 changes: 51 additions & 0 deletions status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"changesets": [
{
"releases": [
{
"name": "create-db",
"type": "patch"
},
{
"name": "create-pg",
"type": "patch"
},
{
"name": "create-postgres",
"type": "patch"
}
],
"summary": "fix: clearing change log versions",
"id": "angry-humans-call"
}
],
"releases": [
{
"name": "create-db",
"type": "patch",
"oldVersion": "0.0.2",
"changesets": [
"angry-humans-call"
],
"newVersion": "0.0.3"
},
{
"name": "create-pg",
"type": "patch",
"oldVersion": "0.0.2",
"changesets": [
"angry-humans-call"
],
"newVersion": "0.0.3"
},
{
"name": "create-postgres",
"type": "patch",
"oldVersion": "0.0.2",
"changesets": [
"angry-humans-call"
],
"newVersion": "0.0.3"
}
]
}