Skip to content

Chore/KT-113: Update releases to use shared workflows #1

Chore/KT-113: Update releases to use shared workflows

Chore/KT-113: Update releases to use shared workflows #1

Workflow file for this run

# The contents of this workflow has been duplicated from @statsbomb/kitbag-workflows
# Compare this snippet from statsbomb/kitbag-workflows/.github/workflows/branch-checks.yml:
# This is because this repo is public is not able to access a private shared workflows repository.
name: Branch Checks
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_PAT }}
jobs:
branch-check:
name: Branch Check
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-branch-name@master
with:
allowed_prefixes: "main,feature,chore,fix,docs,tests,release,dependabot,spike"
size:
name: Package Size Check
runs-on: ubuntu-latest
# Skip on main and release branches
if: ${{ github.ref != 'refs/heads/main' && ! startsWith(github.head_ref, 'release/') }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
scope: "@statsbomb"
- name: Install
run: npm ci
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install