Skip to content

Remove top-level await from tools story #46

Remove top-level await from tools story

Remove top-level await from tools story #46

Workflow file for this run

name: Build & Deploy
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY_PRI }}
source: dist/*
target: ${{ secrets.DEPLOY_PATH }}
strip_components: 1
overwrite: true
- run: npm run build:storybook
- name: deploy storybook
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY_PRI }}
source: storybook-static/*
target: ${{ secrets.DEPLOY_PATH_STORYBOOK }}
strip_components: 1
overwrite: true