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
12 changes: 10 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
# https://github.com/dependabot/dependabot-core/issues/5226
versioning-strategy: "increase"
schedule:
interval: "daily"
interval: "weekly"
labels:
- dependencies
ignore:
- dependency-name: "@types/node"
versions: ">=21.0.0"
groups:
development:
dependency-type: "development"
commit-message:
prefix: fix
prefix-development: chore
include: scope
include: scope
36 changes: 15 additions & 21 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ main, next, 1.x ]
branches:
- main
pull_request:
branches: [ main, next, 1.x ]

branches:
- main
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

node-version:
- 20.x
- 22.x
- 24.x
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run build --if-present
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run ci
35 changes: 14 additions & 21 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs: {}

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GH_PUSH_TOKEN }}
release-type: node
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
release-type: node
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
20.17
2 changes: 1 addition & 1 deletion lib/validator/policy-validator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Ajv, ValidateFunction } from "ajv";
import jsonLogic from "json-logic-js";
import * as defaultSchema from "../../schemas/policy-2023-02.schema.json";
import * as defaultSchema from "../../schemas/policy-2023-02.schema.json" with { type: "json" };
import { JsonLogicParser, JsonSchema, PolicyDocument } from "../types.js";
import { arrayify } from "../utils/arr.js";
import {
Expand Down
123 changes: 63 additions & 60 deletions package-lock.json

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

Loading