Skip to content

Commit

Permalink
Merge pull request #1 from Q42Philips/feature/update-to-grpc-js
Browse files Browse the repository at this point in the history
feat: ⬆️ Updated package to grpc-js and latest dependencies
  • Loading branch information
TheMerski committed Jul 27, 2023
2 parents 40e6de5 + 1a2ecec commit b5137a6
Show file tree
Hide file tree
Showing 23 changed files with 5,188 additions and 6,036 deletions.
34 changes: 34 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
labels:
- 'chore'
- 'dependencies'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
prerelease: true
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
40 changes: 40 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>Q42Philips/alexandria"
],
"packageRules": [
{
"matchUpdateTypes": [
"patch",
"pin",
"digest"
],
"automerge": true,
"appendLabels": [
"patch"
]
},
{
"matchUpdateTypes": [
"minor"
],
"automerge": true,
"appendLabels": [
"minor"
]
},
{
"matchUpdateTypes": [
"major"
],
"automerge": true,
"appendLabels": [
"major"
]
}
],
"rebaseWhen": "behind-base-branch",
"automergeStrategy": "fast-forward",
"automergeType": "pr"
}
24 changes: 13 additions & 11 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
name: Build and test

on: [push, pull_request]
on:
push:
pull_request:
types: [ready_for_review]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '10', '12', '14', '16' ]
name: Run in node v${{ matrix.node }}
node: [ '14', '16', '18', '20' ]
name: Test / node v${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up node v${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Install global dependencies
run: yarn global add node-pre-gyp
cache-dependency-path: ./package-lock.json

- name: Install dependencies
run: yarn install
run: npm install

- name: Run tests
run: yarn test
run: npm test

- name: Build
run: yarn build
run: npm run build
41 changes: 41 additions & 0 deletions .github/workflows/pre-release-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish pre-release package to GitHub Packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: npm test
- run: npm run build
# beta release
- name: pre-release version
if: github.event.release.prerelease == true
run: npm version ${{ github.event.release.tag_name }}-beta --allow-same-version true --git-tag-version false

- name: publish beta
if: github.event.release.prerelease == false
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# full release
- name: relese version
if: github.event.release.prerelease == false
run: npm version ${{ github.event.release.tag_name }} --allow-same-version true --git-tag-version false

- name: publish release
if: github.event.release.prerelease == false
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/release-draft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release Drafter
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
- master
workflow_dispatch:
# manual workflow dispatch; optional

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77 changes: 0 additions & 77 deletions CODE_OF_CONDUCT.md

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2019-2021 StackPath
Copyright (c) 2023 Q42

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit b5137a6

Please sign in to comment.