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
32 changes: 32 additions & 0 deletions .github/workflows/mongoose-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Package

on:
push:
tags:
- "@cerbos/orm-mongoose@v*"

defaults:
run:
working-directory: mongoose

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is, annoyingly, wrong in the docs: npm/documentation#1748

Suggested change
registry-url: "https://registry.npmjs.org"


# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- run: npm ci
- run: npm run build --if-present
- run: npm publish
4 changes: 2 additions & 2 deletions .github/workflows/mongoose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
strategy:
matrix:
cerbos-version: ["latest"]
mongodb-version: ["4.4", "5.0", "6.0", "7.0", "8.0"]
node-version: ["18", "20", "22"]
mongodb-version: ["7.0", "8.0"]
node-version: ["20", "22", "24", "25"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/prisma-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Package

on:
push:
tags:
- "@cerbos/orm-prisma@v*"

defaults:
run:
working-directory: prisma

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
registry-url: "https://registry.npmjs.org"


# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- run: npm ci
- run: npm run build --if-present
- run: npm publish
2 changes: 1 addition & 1 deletion .github/workflows/prisma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
cerbos-version: ["latest"]
node-version: ["18", "20", "22"]
node-version: ["20", "22", "24", "25"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
Expand Down
1 change: 1 addition & 0 deletions mongoose/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
lib
.DS_Store
data
tsconfig.tsbuildinfo
6 changes: 6 additions & 0 deletions mongoose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Not Supported:
- Cerbos > v0.16
- `@cerbos/http` or `@cerbos/grpc` client

## System Requirements

- Node.js >= 20.0.0
- Mongoose 8.x
- A MongoDB-compatible server (MongoDB 5.0+ is recommended for compatibility with Mongoose 8)

## Usage

```
Expand Down
1 change: 0 additions & 1 deletion mongoose/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
"ts-jest",
{
useESM: true,
tsconfig: "./tsconfig.jest.json",
},
],
},
Expand Down
Loading
Loading