feat(meter): add meter component #1689
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: Deploy Pull Request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
paths: | |
- '.storybook/**/*' | |
- 'src/stories/**/*' | |
- 'src/lib/**/*' | |
jobs: | |
wf-config: | |
name: Workflow Configuration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check File Changes | |
uses: dorny/paths-filter@v3 | |
id: file-filter | |
with: | |
filters: | | |
storybook: | |
- '.storybook/**' | |
- 'src/stories/**' | |
- 'src/lib/**' | |
outputs: | |
deploy-storybook: ${{ steps.file-filter.outputs.storybook == 'true' }} | |
deploy-storybook: | |
name: Deploy Storybook | |
needs: wf-config | |
uses: tyler-technologies-oss/forge-automation-shared/.github/workflows/wf-publish-gh-pages.yml@v2.10.3 | |
if: ${{ github.event.pull_request.head.repo.fork == false && needs.wf-config.outputs.deploy-storybook == 'true' && contains(github.event.pull_request.labels.*.name, 'storybook-preview') }} | |
with: | |
PRODUCTION_RELEASE: false | |
BUILD_DIRECTORY: storybook-static | |
BUILD_TARGET_DIRECTORY: docs/pr/${{ github.event.pull_request.head.label }} | |
BUILD_NPM_SCRIPT: "build-storybook" | |
PR_COMMENT_HEADER: "View Storybook Deployment" | |
PR_PATH: pr/${{ github.event.pull_request.head.label }} | |
secrets: | |
GITHUB_DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.FORGE_NPM_TOKEN }} |