Skip to content

Commit ce1131a

Browse files
committed
build: ci-specific build step
Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz>
1 parent bf1ac5f commit ce1131a

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: (Types) Install dependencies
3939
run: pnpm --filter types install
4040
- name: (Types) Build Library
41-
run: pnpm --filter types run build
41+
run: pnpm --filter types run build:ci
4242
- name: (Types) Run Linters
4343
if: ${{ matrix.os == 'ubuntu-22.04' }}
4444
run: pnpm --filter types run lint
@@ -47,7 +47,7 @@ jobs:
4747
- name: (Algorithms) Install dependencies
4848
run: pnpm --filter algorithms install
4949
- name: (Algorithms) Build Library
50-
run: pnpm --filter algorithms run build
50+
run: pnpm --filter algorithms run build:ci
5151
- name: (Algorithms) Run Linters
5252
if: ${{ matrix.os == 'ubuntu-22.04' }}
5353
run: pnpm --filter algorithms run lint
@@ -58,7 +58,7 @@ jobs:
5858
- name: (React SVG) Install dependencies
5959
run: pnpm --filter react install
6060
- name: (React SVG) Build Library
61-
run: pnpm --filter react run build
61+
run: pnpm --filter react run build:ci
6262
- name: (React SVG) Run Linters
6363
if: ${{ matrix.os == 'ubuntu-22.04' }}
6464
run: pnpm --filter react run lint

@beautiful-tree/algorithms/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
],
3939
"scripts": {
4040
"build": "../../scripts/build.sh algorithms",
41+
"build:ci": "rollup --config rollup.config.prod.mjs",
4142
"build-storybook": "storybook build",
4243
"lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0 && publint",
4344
"lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",

@beautiful-tree/react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
],
3939
"scripts": {
4040
"build": "../../scripts/build.sh react",
41+
"build:ci": "rollup --config rollup.config.prod.mjs",
4142
"build-storybook": "storybook build",
4243
"lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0 && publint",
4344
"lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",

@beautiful-tree/types/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
],
1919
"scripts": {
2020
"build": "../../scripts/build.sh types",
21+
"build:ci": "rollup --config rollup.config.prod.mjs",
2122
"lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0 && publint",
2223
"lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
2324
"lint:publint": "publint",

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
set -e # Halts when a command fails
44
set -u # Halts when using undefined variables

0 commit comments

Comments
 (0)