build: change build-scripts to vite #115
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: Pre Build | |
on: | |
push: | |
paths: | |
- 'packages/**' | |
- '!packages/**.md' | |
pull_request: | |
paths: | |
- 'packages/**' | |
- '!packages/**.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies and setup | |
run: npm install && npm run setup | |
- name: Build | |
run: npm run build | |
- name: Check build status | |
run: | | |
if [ $? -eq 0 ]; then | |
echo "Build succeeded!" | |
else | |
echo "Build failed!" | |
exit 1 | |
fi |