Skip to content

Merge pull request #5742 from kiva/MP-1164-fe-incorrect-language-on-m… #3607

Merge pull request #5742 from kiva/MP-1164-fe-incorrect-language-on-m…

Merge pull request #5742 from kiva/MP-1164-fe-incorrect-language-on-m… #3607

# This is a basic workflow to help you get started with Actions
name: Deploy Storybook to GitHub Pages
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job
build-and-deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
cache-name: cache-dependencies
with:
path: |
~/.cache
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci --prefer-offline
- run: npm run deploy-storybook -- --ci --script=build-storybook
env:
GH_TOKEN: Kiva:${{ secrets.GITHUB_TOKEN }}