ci: add travis
This commit is contained in:
parent
73fa112bd2
commit
5e0120eb1a
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -28,5 +28,3 @@ jobs:
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Run compiler
|
- name: Run compiler
|
||||||
run: yarn tsc
|
run: yarn tsc
|
||||||
- name: Deploy to GH Pages
|
|
||||||
run: bash ./deploy.sh
|
|
||||||
|
|
|
||||||
18
.travis.yml
Normal file
18
.travis.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- lts/*
|
||||||
|
install:
|
||||||
|
- yarn
|
||||||
|
script:
|
||||||
|
- yarn build
|
||||||
|
deploy:
|
||||||
|
provider: pages
|
||||||
|
skip_cleanup: true
|
||||||
|
local_dir: dist
|
||||||
|
# A token generated on GitHub allowing Travis to push code on you repository.
|
||||||
|
# Set in the Travis settings page of your repository, as a secure variable.
|
||||||
|
github_token: $GITHUB_TOKEN
|
||||||
|
keep_history: true
|
||||||
|
on:
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
|
@ -4,8 +4,9 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
|
"dev": "vite",
|
||||||
|
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"serve": "vite preview"
|
"serve": "vite preview"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue