Skip to content

Merge pull request #288 from silinternational/add-clear-button #296

Merge pull request #288 from silinternational/add-clear-button

Merge pull request #288 from silinternational/add-clear-button #296

Workflow file for this run

name: github pages
on:
push:
branches:
- develop # Set a branch name to trigger deployment
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.DEFAULT_JOB_TIMEOUT_MINUTES) }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install -g sass
- run: npm ci
- run: npm test
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/develop'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static