Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update default branch naim in workflows NO-JIRA #82

Merged
merged 2 commits into from
Oct 12, 2023
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
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Build and test

on:
push:
branches: ['development']
branches: ['main']
pull_request:
branches: ['development']
branches: ['main']

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/build-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Storybook
on:
push:
branches:
- development
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

Expand All @@ -21,8 +21,6 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build Storybook
env:
STORYBOOK_HOST: tetrisly-react
run: yarn build-storybook

# Popular action to deploy to GitHub Pages:
Expand Down
4 changes: 1 addition & 3 deletions .storybook/lightTheme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { create } from '@storybook/theming/create';

const STORYBOOK_HOST = process?.env?.STORYBOOK_HOST;

export default create({
base: 'light',
colorPrimary: '#272E35',
Expand All @@ -12,7 +10,7 @@ export default create({

// Branding
brandTitle: 'Tetrisly - React Components',
brandImage: `${STORYBOOK_HOST ? '/' + STORYBOOK_HOST : ''}/logo.svg`,
brandImage: '/logo.svg',

// UI
appBg: '#ffffff',
Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
storybook.tetrisly.com