Skip to content
This repository was archived by the owner on Jul 3, 2026. It is now read-only.
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
test:
name: CI
runs-on: ubuntu-latest
services:
nats:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches: [main]

permissions:
contents: write
pull-requests: write
packages: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: ${{ steps.release.outputs.release_created }}
with:
persist-credentials: false

- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
if: ${{ steps.release.outputs.release_created }}
with:
node-version: "22"
cache: ""
registry-url: "https://npm.pkg.github.com"

# GitHub Packages does not support OIDC trusted publishing
- name: Build and publish to GitHub Packages # zizmor: ignore[use-trusted-publishing]
if: ${{ steps.release.outputs.release_created }}
run: |
npm ci
npm run build
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/review-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: |
if [ "$PR_AUTHOR" = "peter-svensson" ]; then
if [ "$PR_AUTHOR" = "peter-svensson" ] || [ "$PR_AUTHOR" = "github-actions[bot]" ]; then
echo "PR by $PR_AUTHOR, no review required"
exit 0
fi
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ repos:
rev: v1.22.0
hooks:
- id: zizmor
args: ["--min-confidence=medium"]
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.0"
}
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"name": "@sparetimecoders/messaging-nats",
"version": "0.1.0",
"version": "0.0.0",
"description": "NATS transport for sparetimecoders messaging libraries",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/sparetimecoders/nodejs-messaging-nats.git"
},
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
"types": "./src/index.ts"
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"src"
],
"scripts": {
Expand All @@ -28,6 +35,6 @@
"vitest": "^3.0.5"
},
"publishConfig": {
"access": "public"
"registry": "https://npm.pkg.github.com"
}
}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "node",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true
}
}
}