commit
86ff014706
23
.github/workflows/deploy.yml
vendored
Normal file
23
.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Deploy to GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm RUN build
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
BRANCH: gh-pages
|
||||||
|
FOLDER: build
|
15
.github/workflows → .github/workflows/nodejs.yml
vendored
15
.github/workflows → .github/workflows/nodejs.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Node.js CI
|
name: Node CI
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
@ -9,12 +9,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
|
- name: Setup Node.js 12.x
|
||||||
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
- run: npm install
|
|
||||||
- run: npm run build
|
- name: Install and test
|
||||||
- run: npm run lint
|
run: |
|
||||||
- run: npm test
|
npm ci
|
||||||
|
npm test
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
14767
package-lock.json
generated
Normal file
14767
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "16.9.17",
|
"@types/react": "16.9.17",
|
||||||
"@types/react-dom": "16.9.4",
|
"@types/react-dom": "16.9.4",
|
||||||
"gh-pages": "2.1.1",
|
|
||||||
"husky": "3.1.0",
|
"husky": "3.1.0",
|
||||||
"lint-staged": "9.5.0",
|
"lint-staged": "9.5.0",
|
||||||
"prettier": "1.19.1",
|
"prettier": "1.19.1",
|
||||||
@ -24,9 +23,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test --env=jsdom",
|
"test": "react-scripts test --env=jsdom --passWithNoTests",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject"
|
||||||
"deploy": "react-scripts build && gh-pages -d build"
|
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user