Skip to content

Commit

Permalink
chore_and_add_storybook_page
Browse files Browse the repository at this point in the history
  • Loading branch information
caprolactam committed Feb 9, 2024
1 parent 960ad58 commit e646621
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 5 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: demo

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run storybook:build
- name: upload storybook
uses: actions/upload-pages-artifact@v1
with:
path: ./storybook-static
deploy:
needs: upload
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
coverage
node_modules
dist
/test-results/
.vscode
TODO.md
TODO.md
/storybook-static/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# feed-a11y

![bundle size](https://img.shields.io/bundlephobia/minzip/feed-a11y)
[![check](https://github.com/caprolactam/feed-a11y/actions/workflows/tests.yml/badge.svg)](https://github.com/caprolactam/feed-a11y/actions/workflows/tests.yml)
[![MIT License](https://img.shields.io/badge/license-MIT%20License-blue.svg?style=flat-square)](https://github.com/caprolactam/feed-a11y/blob/main/LICENSE)

headless and accessible feed component for React.

**Features**
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,17 @@
"react": ">=18",
"react-dom": ">=18"
},
"author": {
"name": "caprolactam"
"repository": {
"type": "git",
"url": "git+https://github.com/caprolactam/feed-a11y.git"
},
"bugs": {
"url": "https://github.com/caprolactam/feed-a11y/issues"
},
"author": "caprolactam <[email protected]> (https://github.com/caprolactam/)",
"keywords": [
"react",
"headless"
]
],
"homepage": "https://github.com/caprolactam/feed-a11y#readme"
}

0 comments on commit e646621

Please sign in to comment.