-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
5,401 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Bug Report | ||
description: Create a bug report to help us improve | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Bug Description | ||
description: A clear and concise description of what the bug is | ||
placeholder: Tell us what you see! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: To Reproduce | ||
description: Steps to reproduce the behavior | ||
placeholder: | | ||
1. Start the KurrentDB server | ||
2. Connect the client to the server | ||
3. Create a new stream | ||
4. Append an event to the stream | ||
5. Read the event from the stream | ||
6. Observe the issue | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: '## Environment' | ||
- type: input | ||
id: db | ||
attributes: | ||
label: KurrentDB Version | ||
placeholder: ex. 24.10.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: client | ||
attributes: | ||
label: Client Version | ||
placeholder: ex. 1.0.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: nodejs-version | ||
attributes: | ||
label: Node.js Version | ||
placeholder: ex. 18.16.0 | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Feature request | ||
url: https://discuss.eventstore.com/ | ||
about: Suggest an idea for this project | ||
- name: Question / Problem | ||
url: https://discuss.eventstore.com/ | ||
about: Questions and problems with n8n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import {promisify} from 'util'; | ||
import assert from 'assert'; | ||
import {resolve} from 'path'; | ||
import semver from 'semver'; | ||
import {exec as execCallback} from 'child_process'; | ||
import {writeFile, readFile} from 'fs/promises'; | ||
|
||
const exec = promisify(execCallback); | ||
|
||
async function updatePackageVersion(packagePath, currentVersion, releaseType) { | ||
const packageFile = resolve(packagePath, 'package.json'); | ||
const packageJson = JSON.parse(await readFile(packageFile, 'utf-8')); | ||
|
||
packageJson.version = semver.inc(currentVersion, releaseType); | ||
|
||
await writeFile(packageFile, JSON.stringify(packageJson, null, 2) + '\n'); | ||
} | ||
|
||
async function main() { | ||
const releaseType = process.env.RELEASE_TYPE; | ||
assert.match(releaseType, /^(patch|minor|major)$/, 'Invalid RELEASE_TYPE'); | ||
|
||
const packages = JSON.parse((await exec('pnpm ls -r --only-projects --json')).stdout); | ||
|
||
for (let {name, path, version, private: isPrivate} of packages) { | ||
if (isPrivate && name !== 'kurrent-node-client-repository') continue; | ||
await updatePackageVersion(path, version, releaseType); | ||
} | ||
} | ||
|
||
main().catch(error => { | ||
console.error('Error updating package versions:', error); | ||
process.exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: 'Release: Create Pull Request' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
base-branch: | ||
description: 'The branch, tag, or commit to create this release PR from.' | ||
required: true | ||
default: 'master' | ||
|
||
release-type: | ||
description: 'A SemVer release type.' | ||
required: true | ||
type: choice | ||
default: 'minor' | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
create-release-pr: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.inputs.base-branch }} | ||
|
||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.15.0 | ||
|
||
- run: npm install --prefix=.github/scripts --no-package-lock | ||
|
||
- name: Bump package versions | ||
run: | | ||
echo "NEXT_RELEASE=$(node .github/scripts/bump_versions.mjs)" >> $GITHUB_ENV | ||
env: | ||
RELEASE_TYPE: ${{ github.event.inputs.release-type }} | ||
|
||
- name: Push the base branch | ||
run: | | ||
git push -f origin refs/remotes/origin/${{ github.event.inputs.base-branch }}:refs/heads/release/${{ env.NEXT_RELEASE }} | ||
- name: Push the release branch, and Create the PR | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
base: 'release/${{ env.NEXT_RELEASE }}' | ||
branch: 'release-pr/${{ env.NEXT_RELEASE }}' | ||
commit-message: 'Release ${{ env.NEXT_RELEASE }}' | ||
delete-branch: true | ||
labels: release,release:${{ github.event.inputs.release-type }} | ||
title: 'Release ${{ env.NEXT_RELEASE }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 'Release: Publish' | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- 'release/*' | ||
|
||
jobs: | ||
publish-to-npm: | ||
name: Publish to NPM | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
timeout-minutes: 10 | ||
permissions: | ||
id-token: write | ||
outputs: | ||
release: ${{ steps.set-release.outputs.release }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 9.15.0 | ||
|
||
- run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Cache build artifacts | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: ./packages/**/dist | ||
key: ${{ github.sha }}-release:build | ||
|
||
- name: Dry-run publishing | ||
run: pnpm publish -r --no-git-checks --dry-run | ||
|
||
- name: Publish to NPM | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
pnpm publish -r --publish-branch ${{github.event.pull_request.base.ref}} --access public --no-git-checks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.