[Storybook] Add ability to take snapshots during Storybook play
int…
#378
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: JS (build) | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'visual-js/**' | |
- .github/workflows/js-build.yml | |
pull_request: | |
paths: | |
- 'visual-js/**' | |
- .github/workflows/js-build.yml | |
defaults: | |
run: | |
working-directory: visual-js | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Build | |
run: | | |
corepack enable | |
yarn install | |
npm run lint --workspaces --if-present | |
npm run build --workspaces --if-present | |
npm run test --workspaces --if-present | |
env: | |
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} |