Skip to content

485: When Modal onClickOutside=false Esc key causes failure (#488) #246

485: When Modal onClickOutside=false Esc key causes failure (#488)

485: When Modal onClickOutside=false Esc key causes failure (#488) #246

Workflow file for this run

# This workflow will build and package the nodejs service and deploy
name: Foundry React UI CI/CD
on:
push:
branches: [master, v1-release, next, alpha, beta]
paths:
- '**'
- '!coverage/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Prepare
run: yarn install
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Lint React
run: yarn run lint
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Test React
run: yarn run test-ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build React
run: yarn run bundle
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Storybook
run: yarn run build-storybook
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Upload react artifacts
uses: actions/upload-artifact@v2
with:
name: react-artifact
path: |
docs/
dist/
coverage/
- name: Update version
run: npm run semver-release # Uses the configuration from package.json
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy github pages
if: github.ref == 'refs/heads/master' # Only do this for pushes to master
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}