Skip to content

Commit 036a1e9

Browse files
authored
Merge pull request #423 from brainstormforce/staging
`v1.7.10`
2 parents 7c47227 + 5118051 commit 036a1e9

15 files changed

Lines changed: 66 additions & 35 deletions

.github/workflows/chromatic.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- staging
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
chromatic:
1013
name: Run Chromatic
@@ -19,10 +22,10 @@ jobs:
1922
node-version: 20
2023
- name: Install dependencies
2124
# ⚠️ See your package manager's documentation for the correct command to install dependencies in a CI environment.
22-
run: npm install && npm run build
25+
run: npm ci && npm run build
2326

2427
- name: Run Chromatic
25-
uses: chromaui/action@latest
28+
uses: chromaui/action@5ec258af08deb3e8c36653bd618cb7fe52090031 # v15.2.0
2629
with:
2730
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
2831
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/code-analysis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Code Analysis
22

33
on: pull_request
44

5+
permissions:
6+
contents: read
7+
58
# Cancels all previous workflow runs for pull requests that have not completed.
69
concurrency:
710
# The concurrency group contains the workflow name and the branch name for pull requests
@@ -15,14 +18,14 @@ jobs:
1518

1619
strategy:
1720
matrix:
18-
node: ['18.15']
21+
node: ['20']
1922

2023
steps:
2124
- name: Checkout
22-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
2326

2427
- name: Use desired version of NodeJS
25-
uses: actions/setup-node@v2
28+
uses: actions/setup-node@v4
2629
with:
2730
node-version: ${{ matrix.node }}
2831

@@ -34,7 +37,7 @@ jobs:
3437
key: ${{ runner.os }}-node-${{ matrix.node }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
3538

3639
- name: Install dependencies
37-
run: npm install
40+
run: npm ci
3841

3942
- name: Lint JS
4043
if: always()

.github/workflows/code-reviewer.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ on:
44
pull_request:
55
types: [opened, synchronize, edited]
66

7-
permissions: write-all
7+
permissions:
8+
contents: read
9+
pull-requests: write
810

911
jobs:
1012
CHECK_SHORTCODE:
1113
if: contains(github.event.pull_request.body, '[BSF-PR-SUMMARY]')
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Checkout Repository
15-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1618

1719
- name: WRITE PR SUMMARY
18-
uses: brainstormforce/pull-request-reviewer@master
20+
uses: brainstormforce/pull-request-reviewer@d38b1e07527dd20ad58fd2407648e9689edc54de # master
1921
with:
2022
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2123
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -30,10 +32,10 @@ jobs:
3032
runs-on: ubuntu-latest
3133
steps:
3234
- name: Checkout Repository
33-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3436

3537
- name: AI CODE REVIEW
36-
uses: brainstormforce/pull-request-reviewer@master
38+
uses: brainstormforce/pull-request-reviewer@d38b1e07527dd20ad58fd2407648e9689edc54de # master
3739
with:
3840
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

.github/workflows/publish-public-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

15-
- uses: actions/setup-node@v3
15+
- uses: actions/setup-node@v4
1616
with:
1717
node-version: '18'
1818

@@ -42,9 +42,9 @@ jobs:
4242
VERSION=$(node -p "require('../package.json').version")
4343
node -e "
4444
const pkg = require('./package.json');
45-
pkg.version = '$VERSION';
45+
pkg.version = process.argv[1];
4646
require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2));
47-
"
47+
" "$VERSION"
4848
4949
# Commit and tag
5050
git config user.name github-actions

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
contents: read
1313
packages: write
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '18'
2020
registry-url: 'https://npm.pkg.github.com'

.github/workflows/storybook-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- id: build-publish
3434
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
3535
with:
36-
install_command: npm install # default: npm ci
36+
install_command: npm ci
3737
build_command: npm run build && npm run build-storybook # default: npm run build-storybook
3838
path: storybook-static # default: dist/storybook
3939
checkout: false # default: true

.github/workflows/storybook-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: 'Storybook Tests'
2+
23
on: push
4+
5+
permissions:
6+
contents: read
7+
38
jobs:
49
test:
510
timeout-minutes: 60
@@ -13,7 +18,7 @@ jobs:
1318
with:
1419
node-version: 20
1520
- name: Install dependencies
16-
run: npm install
21+
run: npm ci
1722
- name: Install Playwright
1823
run: npx playwright install --with-deps
1924
- name: Build force-ui

.github/workflows/tag-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: write
10+
811
# Cancels all previous workflow runs for pull requests that have not completed.
912
concurrency:
1013
# The concurrency group contains the workflow name and the branch name for pull requests
@@ -22,11 +25,11 @@ jobs:
2225
- name: Use desired version of NodeJS
2326
uses: actions/setup-node@v4
2427
with:
25-
node-version: 18.15
28+
node-version: 20
2629
cache: 'npm'
2730

2831
- name: Build the release
29-
run: npm install && npm run release
32+
run: npm ci && npm run release
3033

3134
- name: Maybe create a tag
3235
run: bash bin/release.sh

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Using Force UI as a dependency in package.json -
1414

1515
```json
1616
"dependencies": {
17-
"@bsf/force-ui": "git+https://github.com/brainstormforce/force-ui#1.7.9"
17+
"@bsf/force-ui": "git+https://github.com/brainstormforce/force-ui#1.7.10"
1818
}
1919
```
2020

@@ -28,7 +28,7 @@ npm install
2828
Or you can directly run the following command to install the package -
2929

3030
```bash
31-
npm i -S @bsf/force-ui@git+https://github.com/brainstormforce/force-ui.git#1.7.9
31+
npm i -S @bsf/force-ui@git+https://github.com/brainstormforce/force-ui.git#1.7.10
3232
```
3333

3434
<br />

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 1.7.10 - 6th March, 2026
2+
- Improvement: CI/CD - Hardened security across various GitHub Action workflows and improved Storybook deployment.
3+
- Improvement: Package Dependencies & Utils - Created the `omit` function and removed `lodash` dependency.
4+
15
Version 1.7.9 - 26th February, 2026
26
- Fix: Organism - Tabs: Resolved an issue where switching a tab prevented the parent Dialog or Drawer from unmounting by removing the incorrect `layoutRoot` prop from the Tab button.
37

0 commit comments

Comments
 (0)