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: sdk preview #239

Merged
merged 4 commits into from
Nov 19, 2024
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
25 changes: 25 additions & 0 deletions .github/workflows/npm-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'npm Preview'

on:
pull_request:

jobs:
setup:
name: Setup & Build Pink
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm run build
- name: Publish
run: pnpx pkg-pr-new publish --comment=update './v2/pink-sb' './v2/pink-icons'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
7 changes: 5 additions & 2 deletions v2/pink-sb/src/lib/helpers/size.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
declare const sizes: readonly ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
declare const sizes: readonly ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
export type Size = (typeof sizes)[number];
export declare function humanFileSize(bytes: number, useBits?: boolean): {
export declare function humanFileSize(
bytes: number,
useBits?: boolean
): {
value: string;
unit: Size;
};
Expand Down
2 changes: 1 addition & 1 deletion v2/pink-sb/src/stories/Image.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
title: 'Components/Image',
component: Image,
args: {
src: 'https://unsplash.it/150',
src: 'https://picsum.photos/id/237/150',
alt: 'Placeholder',
width: 150,
height: 150
Expand Down
2 changes: 1 addition & 1 deletion v2/pink-sb/src/stories/card/Media.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
component: Card.Media,
args: {
title: 'Title',
src: 'https://unsplash.it/250',
src: 'https://picsum.photos/id/237/250',
alt: 'Placeholder image',
description: 'New This is a very long description that should be truncated',
width: '150'
Expand Down
2 changes: 1 addition & 1 deletion v2/pink-sb/src/stories/card/Selector.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<Story name="Secondary" args={{ variant: 'secondary' }} />
<Story
name="With image"
args={{ variant: 'primary', src: 'https://via.placeholder.com/248x148' }}
args={{ variant: 'primary', src: 'https://picsum.photos/id/237/248/148' }}
/>
<Story name="Radius - s" args={{ radius: 's' }} />
<Story name="Radius - m" args={{ radius: 'm' }} />
Expand Down
Loading