ci: add travis

This commit is contained in:
Nicola Zambello 2021-12-14 10:36:51 +01:00
parent 73fa112bd2
commit 5e0120eb1a
3 changed files with 20 additions and 3 deletions

View file

@ -28,5 +28,3 @@ jobs:
run: yarn
- name: Run compiler
run: yarn tsc
- name: Deploy to GH Pages
run: bash ./deploy.sh

18
.travis.yml Normal file
View 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

View file

@ -4,8 +4,9 @@
"license": "MIT",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"dev": "vite",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
"prepare": "husky install",
"serve": "vite preview"
},