diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 000000000..e5b6d8d6a --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 000000000..edef2ebc1 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..a3a472920 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,32 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup Node.js 23.1 + uses: actions/setup-node@v3 + with: + node-version: 23.1 + + - name: Install Dependencies + run: bun install + + - name: Publish to npm + id: changesets + uses: changesets/action@v1 + with: + publish: bun release + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 3be9cfa5a..b229bb378 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,24 @@ By setting up the logger, you can monitor the internal operations of `jseql`, wh Contributions are welcome! Please open an issue or submit a pull request on the [GitHub repository](https://github.com/cipherstash/jseql). +## Changelog + +We use [Changesets](https://github.com/changesets/changesets) to manage our changelog. +To create a new release, run the following command: + +```bash +bun changeset +``` + +This will open a new editor where you can write a changelog entry. +Once you're done, run the following command to create a new release: + +```bash +bun changeset:version +``` + +Create a pull request and merge it into the `main` branch, which will trigger the release workflow to publish the new version to npm. + ## License This project is licensed under the MIT License. \ No newline at end of file diff --git a/apps/drizzle/package.json b/apps/drizzle/package.json index 2ebd8e9d5..a8aa680dd 100644 --- a/apps/drizzle/package.json +++ b/apps/drizzle/package.json @@ -1,6 +1,7 @@ { "name": "drizzle-eql", "module": "index.ts", + "private": true, "type": "module", "devDependencies": { "@types/bun": "latest", @@ -13,7 +14,7 @@ "peerDependencies": { "typescript": "^5.0.0", "@cipherstash/jseql": "workspace:*", - "@cipherstash/utils": "workspace:*" + "@cipherstash/utils": "workspace:*" }, "dependencies": { "drizzle-orm": "^0.33.0", diff --git a/apps/prisma/package.json b/apps/prisma/package.json index a146c3529..8930dabec 100644 --- a/apps/prisma/package.json +++ b/apps/prisma/package.json @@ -1,6 +1,7 @@ { "name": "prisma-eql", "module": "index.ts", + "private": true, "type": "module", "devDependencies": { "@types/bun": "latest", diff --git a/bun.lockb b/bun.lockb index 19969561f..76e04d647 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 9fd9c859a..26a8fc324 100644 --- a/package.json +++ b/package.json @@ -2,24 +2,29 @@ "name": "cipherstash", "description": "Encrypted Query Language JavaScript/TypeScript Library", "author": "CipherStash ", - "keywords": ["encrypted", "query", "language", "typescript", "ts", "eql"], - "bugs": { - "url": "https://github.com/cipherstash/jseql/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/cipherstash/jseql.git" - }, - "license": "MIT", + "keywords": ["encrypted", "query", "language", "typescript", "ts", "eql"], + "bugs": { + "url": "https://github.com/cipherstash/jseql/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/cipherstash/jseql.git" + }, + "license": "MIT", "workspaces": ["apps/*", "packages/*"], "scripts": { "build": "turbo build", + "changeset": "changeset", + "changeset:version": "changeset version", + "changeset:publish": "changeset publish", "dev": "turbo dev", "code:fix": "biome check --write", + "release": "turbo run build && changeset publish", "test": "turbo test" }, "devDependencies": { "@biomejs/biome": "^1.9.3", + "@changesets/cli": "^2.27.9", "turbo": "2.1.1" }, "packageManager": "bun@1.1.27", diff --git a/packages/jseql/CHANGELOG.md b/packages/jseql/CHANGELOG.md new file mode 100644 index 000000000..4ea2f61a0 --- /dev/null +++ b/packages/jseql/CHANGELOG.md @@ -0,0 +1,7 @@ +# @cipherstash/jseql + +## 1.0.0 + +### Major Changes + +- Released the initial version of jseql. diff --git a/packages/jseql/package.json b/packages/jseql/package.json index f3dd231d3..3b6089962 100644 --- a/packages/jseql/package.json +++ b/packages/jseql/package.json @@ -1,8 +1,15 @@ { "name": "@cipherstash/jseql", - "version": "0.0.0", + "version": "1.0.0", "description": "Encrypted Query Language JavaScript Library", - "keywords": ["encrypted", "query", "language", "typescript", "ts", "eql"], + "keywords": [ + "encrypted", + "query", + "language", + "typescript", + "ts", + "eql" + ], "bugs": { "url": "https://github.com/cipherstash/jseql/issues" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 09fb5222c..4108978d0 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,7 @@ { "name": "@cipherstash/utils", "version": "0.0.0", + "private": true, "description": "jseql shared utility functions", "license": "MIT", "author": "CipherStash ",