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
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: build
on: [pull_request]

defaults:
run:
shell: pwsh

jobs:
Ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout source code.
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v7
with:
node-version: 20.x
node-version: 24.x

- uses: actions/cache@v3
- uses: actions/cache@v6
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- run: npm install
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run vitest:cov
- run: npm run test:peers
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ permissions:
on:
release:
types: [created]
defaults:
run:
shell: pwsh
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24.x
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm ci
- run: npm run build
- run: npm publish --provenance
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ At first, install NPM package.
npm i -D prisma-markdown
```

Prisma 7.x is supported. `@prisma/client` is not required to generate Markdown;
install it separately if your application also needs Prisma Client. Compatibility
tests cover Prisma 7.0.0 and the version locked for development.

Maintainers can run `pnpm release` from a clean, synchronized `master` after
merging a version update. It creates the version's GitHub Release, which triggers
the npm publishing workflow with provenance.

At next, add the generator to the schema file.

```prisma
Expand Down
Loading
Loading