fix(Input): Clarification that developers should use ref
with Input
. Add a new example for Storybook.
#2969
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview (within a pull request) | |
on: | |
pull_request: | |
branches: | |
- dev | |
- main | |
- 'dev-patch' | |
- 'patch-*' | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup | |
uses: actions/setup-node@v2 | |
with: | |
node-version-file: '.nvmrc' | |
check-latest: true | |
- name: Check Node version | |
run: node -v | |
- name: Update NPM version | |
run: npm install -g "npm@^7.6.3" | |
- name: Install | |
run: npm ci | |
- name: Test | |
run: npm test | |
- name: Coverage | |
uses: codecov/codecov-action@v1 | |
- name: Build Docs | |
run: npm run build:docs | |
- name: Build Storybook | |
run: npm run build:storybook | |
- name: Deploy Doc Preview to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: './website/react-magma-docs/public' | |
production-branch: main | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
enable-pull-request-comment: true | |
enable-commit-comment: true | |
overwrites-pull-request-comment: false | |
alias: docs-preview-${{ github.event.number }} | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
- name: Deploy Storybook to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: './storybook-static' | |
production-branch: main | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
enable-pull-request-comment: true | |
enable-commit-comment: true | |
overwrites-pull-request-comment: false | |
alias: storybook-preview-${{ github.event.number }} | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |