Skip to content

feat: adds input component (#39) #16

feat: adds input component (#39)

feat: adds input component (#39) #16

Workflow file for this run

name: deploy
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup node env πŸ—
uses: actions/setup-node@v3
with:
cache: pnpm
node-version-file: .nvmrc
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: |
${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install --frozen-lockfile
- name: Build static
run: pnpm run build:storybook
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: storybook-static/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2