Skip to content

Commit

Permalink
Merge pull request #5 from OutpostHQ/release
Browse files Browse the repository at this point in the history
release
  • Loading branch information
shubham-kaushal authored May 21, 2023
2 parents 4029dd0 + 52b2603 commit ae2db04
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 161 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,51 +87,3 @@ jobs:
exitOnceUploaded: true
autoAcceptChanges: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

deploy-docs:
name: 'Deploy Latest documentation'
needs: publish
if: needs.publish.outputs.published == 'true'
runs-on: ubuntu-latest
environment:
name: Docs Production
url: ${{ steps.publish_docs.outputs.NETLIFY_PREVIEW_URL }}
env:
NODE_OPTIONS: --max-old-space-size=4096
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/cache@v2
name: Download storybook cache
with:
path: |
**/node_modules/.cache
key: ${{ runner.os }}-storybook-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-storybook
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build Docs
run: pnpm build-docs --quiet

- name: Deploy docs to Netlify
uses: South-Paw/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: ./storybook-docs
97 changes: 0 additions & 97 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,38 +68,6 @@ jobs:
prNumber: context.payload.pull_request.number
})
tests:
name: 'Tests & lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/cache@v2
name: Download eslint cache
with:
path: |
**/.eslintcache
key: ${{ runner.os }}-eslint

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run the lint
run: pnpm lint

- name: Run the tests
run: pnpm test -- --no-cache

deploy-chromatic:
name: 'Prepare Storybook for review & tests'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -162,68 +130,3 @@ jobs:
repo: context.repo,
prNumber: context.payload.pull_request.number
})
deploy-docs:
name: 'Prepare Docs for the Review'
runs-on: ubuntu-latest
environment:
name: Docs staging
url: ${{ steps.publish_docs.outputs.preview-url }}
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/cache@v2
name: Download storybook cache
with:
path: |
**/node_modules/.cache
key: ${{ runner.os }}-storybook-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-storybook
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build Docs
run: pnpm build-docs --quiet

- name: Deploy docs to Netlify
id: publish_docs
uses: South-Paw/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
draft: true
build-dir: ./storybook-docs
comment-on-commit: true

- name: Comment PR
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message')
await setMessage({
header: "## 🏗 Docs are successfully deployed!",
body: `
👀 Preview: ${{ steps.publish_docs.outputs.preview-url }}
`,
github,
repo: context.repo,
prNumber: context.payload.pull_request.number
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jenga-ui",
"version": "0.4.0",
"version": "0.5.0",
"description": "Responsive and Accessible React UI Components built with React and TastyCSS",
"keywords": [
"react",
Expand Down
24 changes: 9 additions & 15 deletions src/tasty/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,15 @@ export interface AllBaseProps<K extends keyof HTMLElementTagNameMap = 'div'>
as?: string;
}

export type BaseStyleProps = Pick<Styles, (typeof BASE_STYLES)[number]>;
export type PositionStyleProps = Pick<Styles, (typeof POSITION_STYLES)[number]>;
export type BlockStyleProps = Pick<Styles, (typeof BLOCK_STYLES)[number]>;
export type ColorStyleProps = Pick<Styles, (typeof COLOR_STYLES)[number]>;
export type TextStyleProps = Pick<Styles, (typeof TEXT_STYLES)[number]>;
export type DimensionStyleProps = Pick<
Styles,
(typeof DIMENSION_STYLES)[number]
>;
export type FlowStyleProps = Pick<Styles, (typeof FLOW_STYLES)[number]>;
export type ContainerStyleProps = Pick<
Styles,
(typeof CONTAINER_STYLES)[number]
>;
export type OuterStyleProps = Pick<Styles, (typeof OUTER_STYLES)[number]>;
export type BaseStyleProps = Pick<Styles, typeof BASE_STYLES[number]>;
export type PositionStyleProps = Pick<Styles, typeof POSITION_STYLES[number]>;
export type BlockStyleProps = Pick<Styles, typeof BLOCK_STYLES[number]>;
export type ColorStyleProps = Pick<Styles, typeof COLOR_STYLES[number]>;
export type TextStyleProps = Pick<Styles, typeof TEXT_STYLES[number]>;
export type DimensionStyleProps = Pick<Styles, typeof DIMENSION_STYLES[number]>;
export type FlowStyleProps = Pick<Styles, typeof FLOW_STYLES[number]>;
export type ContainerStyleProps = Pick<Styles, typeof CONTAINER_STYLES[number]>;
export type OuterStyleProps = Pick<Styles, typeof OUTER_STYLES[number]>;

export type ShortGridStyles = {
template?: Styles['gridTemplate'];
Expand Down

0 comments on commit ae2db04

Please sign in to comment.