Skip to content

Merge branch 'main' of https://github.com/bbc/bug #646

Merge branch 'main' of https://github.com/bbc/bug

Merge branch 'main' of https://github.com/bbc/bug #646

Workflow file for this run

name: Version Bump
on:
push:
branches:
- main
paths:
- "src/server/**"
- "src/client/**"
- "src/modules/**"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
version:
runs-on: ubuntu-latest
steps:
# checkout code
- name: checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
# setup node
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
# install dependencies
- name: install dependencies
run: npm ci
# update module changelogs and bump module.json versions
- name: update module changelogs
run: node .github/scripts/updateModules.js
# commit any changes from updateModules.js
- name: commit changelog/module changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add src/modules
git diff --cached --quiet || git commit -m "ci: update module changelogs and bump versions"
git push
# update app changelog and bump package.json versions
- name: update app changelogs
run: node .github/scripts/updateApp.js
# commit any changes from updateApp.js
- name: commit changelog/app changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md package.json src/client/package.json
git diff --cached --quiet || git commit -m "ci: update app changelog and bump versions"
git push