Skip to content

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Swag Labs Sample App Workflow
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
env:
BUILD_PREFIX: true
IS_MAIN: ${{ github.ref == 'refs/heads/main' }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SCREENER_API_KEY: ${{ secrets.SCREENER_API_KEY }}
steps:
- uses: actions/checkout@v2
- name: Build
uses: actions/setup-node@v2
with:
node-version: '16.x'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build site
env:
CI: false
run: |
ls
npm ci
npm run build
- name: Build storybook
env:
CI: false
run: |
ls
npm run build.storybook