ELEMENTS-1672-BACKPORT: Apply text-overflow and tooltip to multiple selected i… #1207
Workflow file for this run
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: Storybook | |
on: | |
pull_request: | |
branches: | |
- maintenance-3.0.x | |
workflow_call: | |
inputs: | |
branch: | |
description: 'The current branch' | |
default: maintenance-3.0.x | |
type: string | |
required: false | |
secrets: | |
NPM_PACKAGES_TOKEN: | |
description: 'NPM_PACKAGES_TOKEN' | |
required: true | |
env: | |
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }} | |
jobs: | |
storybook: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ env.BRANCH_NAME }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://packages.nuxeo.com/repository/npm-public/' | |
scope: '@nuxeo' | |
- name: Install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }} | |
run: | | |
npm install --no-package-lock | |
npm run bootstrap | |
- name: Run analysis | |
run: npx lerna run analysis --parallel | |
- name: Build storybook | |
working-directory: storybook | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
run: | | |
npx build-storybook -o dist -s ./public | |
- name: Deploy | |
if: ${{ env.BRANCH_NAME == 'maintenance-3.0.x' }} | |
env: | |
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} | |
NODE_OPTIONS: --openssl-legacy-provider | |
working-directory: storybook | |
run: npm run deploy -- --ci |