Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/scripts/pre-commit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { execSync } = require('child_process');

// Called by TriPSs/conventional-changelog-action right after it bumps the
// version in package.json/package-lock.json, before committing the release.
// The action only text-replaces the top-level "version" field, so
// package-lock.json's nested packages[""] entry (its own copy of the root
// version) is left stale, requiring a manual fix after every release:
// https://github.com/bigbluebutton/bbb-ui-components-react/commit/2ff2bbb617197a4af5495961d57c17ca11d13356?diff=split#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519R9
// Regenerating the lockfile here keeps it in sync before the release commit.
exports.preCommit = () => {
execSync('npm install --package-lock-only', { stdio: 'inherit' });
};
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tag_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
contents: write # Required to push commits and tags
steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0 # Fetches all history for accurate changelog generation

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'

Expand All @@ -38,6 +38,7 @@ jobs:
skip-ci: 'false'
tag-prefix: 'v'
version-file: './package.json, ./package-lock.json'
pre-commit: './.github/scripts/pre-commit.js'

- name: Create GitHub Release
if: ${{ github.event.inputs.create_github_release == 'true' && steps.changelog.outputs.skipped == 'false' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ts-code-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
ts-code-compilation:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 1
# Merges the base branch (e.g. develop) into the PR branch so compilation
# runs against the integrated result, catching conflicts early.
- name: Merge branches
uses: ./.github/actions/merge-branches
- name: install node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
- name: run npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ts-code-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
ts-code-validation:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 1
# Merges the base branch (e.g. develop) into the PR branch so validation
# runs against the integrated result, catching conflicts early.
- name: Merge branches
uses: ./.github/actions/merge-branches
- name: install node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
- name: run npm install
Expand Down
Loading