Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
08a4995
chore: add .nvmrc
tnotheis Mar 23, 2026
a19160d
ci: improve test pipeline
tnotheis Mar 23, 2026
2f90b7a
ci: improve publish pipeline
tnotheis Mar 23, 2026
c1e9d15
ci: add renovate config
tnotheis Mar 23, 2026
39f6f4e
chore: update .vscode/settings.json to match other repos
tnotheis Mar 23, 2026
28049ee
chore: add settings.yml
tnotheis Mar 23, 2026
02b4f64
ci: add check-pr pipeline
tnotheis Mar 23, 2026
4765582
ci: use single codeql file
tnotheis Mar 23, 2026
ec05874
Merge branch 'main' into improve-pipelines
tnotheis Mar 23, 2026
b0caa77
ci: remove docker config extension from renovate config
tnotheis Mar 23, 2026
a59cf4b
ci: delete test.sh script
tnotheis Mar 23, 2026
d817356
ci: update actions/checkout to version 6 in test workflow
tnotheis Mar 23, 2026
660a303
cI: run build instead of build:node in test pipeline
tnotheis Mar 23, 2026
069aff0
chore: add enhanced-publish to dev dependencies
tnotheis Mar 23, 2026
5f3c1e0
ci: update writeBuildInformation.sh to read version from env var
tnotheis Mar 23, 2026
d546f0a
ci: update publishNpm.sh to prevent git tagging during versioning
tnotheis Mar 23, 2026
00e7f70
chore: add pull request template
tnotheis Mar 24, 2026
8ad20c9
ci: add mergify configuration
tnotheis Mar 24, 2026
69958fd
feat: add release template
tnotheis Mar 24, 2026
97bbd3a
chore: fix casing of buildInformation in index.ts
tnotheis Mar 24, 2026
c4d2d4e
chore: remove version from package.json
tnotheis Mar 24, 2026
5e46a07
ci: limit permissions of check-pr pipeline
tnotheis Mar 24, 2026
d9002d2
chore: correctly rename buildInformation.ts file
tnotheis Mar 24, 2026
df5e6f7
ci: build tests in test pipeline
tnotheis Mar 24, 2026
f75a02f
ci: fix test pipeline
tnotheis Mar 24, 2026
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
5 changes: 0 additions & 5 deletions .ci/publish.sh

This file was deleted.

21 changes: 21 additions & 0 deletions .ci/publishNpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e

if [ -z "$VERSION" ]; then
echo "The environment variable 'VERSION' must be set."
exit 1
fi

if printf -- "$VERSION" | grep -q " "; then
echo '$VERSION must not contain whitespaces'
exit 1
fi

# set the version of all packages in the workspace to $VERSION
npm version --no-git-tag-version $VERSION

# npm i to update the lockfile
npm i

# publish all packages
npm exec -c 'enhanced-publish --if-possible --use-preid-as-tag'
6 changes: 3 additions & 3 deletions .ci/build.sh → .ci/runChecks.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
set -e
set -x

npm ci
npm run lint:prettier
npm run build:node
npm run lint:eslint
npm run lint:prettier
npm run cdep
npx license-check
npx better-npm-audit audit --exclude 1112706,1113686
npm run build:ci
4 changes: 0 additions & 4 deletions .ci/test.sh

This file was deleted.

17 changes: 9 additions & 8 deletions .ci/writeBuildInformation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ if [ -z "$(which jq)" ]; then
exit 1
fi

if [ -z "$VERSION" ]; then
echo "The environment variable 'VERSION' must be set."
exit 1
fi

if [ -z "$BUILD_NUMBER" ]; then
echo "The environment variable 'BUILD_NUMBER' must be set."
exit 1
Expand All @@ -21,24 +26,20 @@ if [ "$DEPENDENCIES" = "null" ]; then
DEPENDENCIES="{}"
fi

VERSION=$(jq .version package.json -cr)
if [ -z "$VERSION" ]; then
echo "Couldn't read the version from package.json."
exit 1
fi
DEPENDENCIES="${DEPENDENCIES//[\/]/\\/}" # replace '/' with '\/' because it's a special char

DATE=$(date -u --iso-8601=seconds)

TARGET_FILE="./dist/buildInformation.js"

echo "Writing the following properties into $TARGET_FILE"
echo " - DEPENDENCIES: $DEPENDENCIES"
echo " - VERSION: $VERSION"
echo " - BUILD_NUMBER: $BUILD_NUMBER"
echo " - COMMIT_HASH: $COMMIT_HASH"
echo " - DATE: $DATE"

TARGET_FILE="./dist/BuildInformation.js"

sed -i "s/\"{{dependencies}}\"/$DEPENDENCIES/" $TARGET_FILE
sed -i "s/\"{{dependencies}}\"/"$DEPENDENCIES"/" $TARGET_FILE
sed -i "s/{{version}}/$VERSION/" $TARGET_FILE
sed -i "s/{{build}}/$BUILD_NUMBER/" $TARGET_FILE
sed -i "s/{{commit}}/$COMMIT_HASH/" $TARGET_FILE
Expand Down
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Readiness checklist

- [ ] I added/updated tests.
- [ ] I ensured that the PR title is good enough for the changelog.
- [ ] I labeled the PR.
- [ ] I self-reviewed the PR.

<!-- # Description -->
6 changes: 6 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pull_request_rules:
- name: update pull request
conditions:
- label!=wip
actions:
update:
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
changelog:
exclude:
labels:
- ci
- chore
- dependencies
- refactoring
- test
categories:
- title: Breaking Changes
labels:
- breaking-change
- title: New Features
labels:
- enhancement
- title: Bug Fixes
labels:
- bug
- title: Other Changes
labels:
- "*"
27 changes: 27 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
rangeStrategy: "bump",
extends: ["config:recommended", ":disableDependencyDashboard"],
labels: ["dependencies"],
schedule: ["after 10pm every weekday", "before 5am every weekday", "every weekend"],
reviewers: ["Milena-Czierlinski", "britsta"],
packageRules: [
{
// all patch versions of all packages should be part of a single group
groupName: "patch-all",
matchUpdateTypes: ["patch", "digest"],
automerge: true
},
// ############# Minor updates (one group per datasource) #############
{
groupName: "minor-updates-npm",
matchDatasources: ["npm"],
matchUpdateTypes: ["minor"]
},
{
groupName: "minor-updates-github-tags-and-runners",
matchDatasources: ["github-tags", "github-runners"],
matchUpdateTypes: ["minor"]
}
]
}
42 changes: 42 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# https://github.com/repository-settings/app

repository:
allow_squash_merge: true
allow_merge_commit: false
allow_rebase_merge: false
allow_auto_merge: true
allow_update_branch: true
delete_branch_on_merge: true

labels:
- name: breaking-change
color: "#16060F"
description: A breaking change
- name: bug
color: "#d73a4a"
description: Something isn't working
- name: chore
color: "#c2e0c6"
description: Some routine work like updating dependencies
- name: ci
color: "#DFB5FD"
description: Continuous Integration related stuff
- name: dependencies
color: "#0366d6"
description: Pull requests that update dependencies
- name: documentation
color: "#0075ca"
description: Improvements or additions to documentation
- name: enhancement
color: "#a2eeef"
description: New feature or request
- name: refactoring
color: "#880361"
description: Refactoring of code
- name: test
color: "#20D89D"
description: This pull request contains only new or changed tests
- name: wip
color: "#32BF4C"
description: Work in Progress (blocks mergify from auto update the branch)
20 changes: 20 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check Pull Request

permissions:
contents: read

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
validate-pr-label:
name: Validate the Pull Request's labels
runs-on: ubuntu-latest
steps:
- name: PR must be labeled
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
with:
disable-reviews: true
github-token: "${{ secrets.GITHUB_TOKEN }}"
valid-labels: "breaking-change, bug, chore, ci, dependencies, documentation, enhancement, refactoring, test"
24 changes: 0 additions & 24 deletions .github/workflows/codeql-analysis-cron.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL"

on:
push:
branches: ["main", "release/**"]
pull_request:
branches: ["main", "release/**"]
schedule:
- cron: "38 11 * * 5"

jobs:
analyze:
name: Analyze
runs-on: "ubuntu-latest"
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript-typescript"]

steps:
- name: Checkout repository
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
25 changes: 17 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,34 @@ name: Publish

on:
push:
branches:
- main
tags:
- "*"

jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: bash .ci/runChecks.sh

publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: current
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
- uses: browser-actions/setup-chrome@latest
- run: bash .ci/build.sh
- run: npm ci
- run: npm run build:ci
env:
BUILD_NUMBER: ${{ github.run_number }}
COMMIT_HASH: ${{ github.sha }}
- run: bash .ci/test.sh
- run: bash .ci/publish.sh
VERSION: ${{ github.ref_name }}
- run: bash .ci/publishNpm.sh
env:
VERSION: ${{ github.ref_name }}
needs: ["run-checks"]
18 changes: 11 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ on:
- main

jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: bash .ci/runChecks.sh

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: current
node-version-file: .nvmrc
- uses: browser-actions/setup-chrome@latest
- run: bash .ci/build.sh
env:
BUILD_NUMBER: ${{ github.run_number }}
COMMIT_HASH: ${{ github.sha }}
- run: bash .ci/test.sh
- run: npm ci
- run: npm run build
- run: npm run test:ci
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
25.8.1
Loading
Loading