Initial BPer implementation

This commit is contained in:
Andrea Lamparelli 2022-12-22 13:14:37 +01:00
parent 05d156a5b0
commit f0d9f789fa
59 changed files with 33618 additions and 1048 deletions

28
.github/workflows/publish-gha.yml vendored Normal file
View file

@ -0,0 +1,28 @@
##
# Publish new action tag(s) for downstream consumption
##
name: Publish
# Manual or automatic release
on:
release:
types: [published, edited]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Node
uses: actions/setup-node@v3
# Compile dist/index.js and bundle with action.yml
# Force push major and minor tags, e.g. v1, v1.0
# See documentation: https://github.com/JasonEtco/build-and-tag-action
- uses: JasonEtco/build-and-tag-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}

24
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Publish
on:
workflow_dispatch:
inputs:
tag:
description: 'publish the package with the specified tag, default is "latest"'
required: false
default: 'latest'
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public --tag ${{ inputs.tag }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

23
.github/workflows/pull-request.yml vendored Normal file
View file

@ -0,0 +1,23 @@
# This workflow will do a clean install of node dependencies, 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: Pull Request Checks
on: pull_request
jobs:
build:
strategy:
matrix:
node-version: [16]
os: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci

27
.github/workflows/version.yml vendored Normal file
View file

@ -0,0 +1,27 @@
# This manual workflow will bump the project to a new version and tag it, see https://docs.npmjs.com/cli/v8/commands/npm-version#description for more details
name: Version Tag
on:
workflow_dispatch:
inputs:
version:
description: 'version to bump [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]'
required: false
default: 'minor'
type: string
message:
description: 'version commit message to be used'
required: false
default: 'Bumping to version %s'
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm version ${{ inputs.version }} -m "${{ inputs.message }}"