feat: add preview deploys with netlify
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
1cef4f6e0b
commit
d894f6c3c9
13
.drone.yml
13
.drone.yml
|
@ -1,8 +1,6 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
# TODO: update translations only nightly
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
include:
|
include:
|
||||||
|
@ -138,6 +136,17 @@ steps:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
|
||||||
|
- name: deploy-preview
|
||||||
|
image: node:16
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
NETLIFY_AUTH_TOKEN:
|
||||||
|
from_secret: netlify_auth_token
|
||||||
|
commands:
|
||||||
|
- netlify deploy
|
||||||
|
depends_on:
|
||||||
|
- build-prod
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: release-latest
|
name: release-latest
|
||||||
|
|
|
@ -26,3 +26,6 @@ stats.html
|
||||||
# Test files
|
# Test files
|
||||||
cypress/screenshots
|
cypress/screenshots
|
||||||
cypress/videos
|
cypress/videos
|
||||||
|
|
||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[build]
|
||||||
|
command = "yarn build"
|
||||||
|
publish = "dist"
|
|
@ -70,6 +70,7 @@
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"faker": "5.5.3",
|
"faker": "5.5.3",
|
||||||
"jest": "27.3.1",
|
"jest": "27.3.1",
|
||||||
|
"netlify-cli": "^6.14.19",
|
||||||
"postcss": "8.3.11",
|
"postcss": "8.3.11",
|
||||||
"rollup": "2.59.0",
|
"rollup": "2.59.0",
|
||||||
"rollup-plugin-visualizer": "5.5.2",
|
"rollup-plugin-visualizer": "5.5.2",
|
||||||
|
|
Reference in New Issue